Skip navigation.
 
mlRe: NSString vs NSPathStore2
FROM : Peter Maurer
DATE : Thu May 22 22:53:16 2008

> I am then trying to populate an NSTableView with a filename obtained 
> from a
> NSOpenPanel. The problem is that NSOpenPanel seems to return a 
> NSPathStore2
> and not an NSString, which seems to be causing problems. Is there 
> are a way
> to convert NSPathStore2 to an NSString?


NSPathStore2s are NSStrings -- cf. <http://www.cocoabuilder.com/archive/message/cocoa/2004/11/5/120866
>, for instance. You can also check themself yourself by sending them 
a [object isKindOfClass: [NSString class]] message. (That's what I did 
when I encountered them the first time.)

What exactly is the problem you're experiencing? It's probably not 
related to what your NSOpenPanel is returning.

Peter.

Related mailsAuthorDate
mlNSString vs NSPathStore2 <andrew May 22, 19:38
mlRe: NSString vs NSPathStore2 j o a r May 22, 19:44
mlRe: NSString vs NSPathStore2 David Duncan May 22, 19:45
mlRe: NSString vs NSPathStore2 Sherm Pendley May 22, 20:19
mlRe: NSString vs NSPathStore2 Peter Maurer May 22, 22:53
mlRe: NSString vs NSPathStore2 Clark Cox May 23, 00:20