Re: NSString vs NSPathStore2
Re: NSString vs NSPathStore2
- Subject: Re: NSString vs NSPathStore2
- From: Peter Maurer <email@hidden>
- Date: Thu, 22 May 2008 22:53:16 +0200
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.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden