Re: NSString vs NSPathStore2
Re: NSString vs NSPathStore2
- Subject: Re: NSString vs NSPathStore2
- From: "Sherm Pendley" <email@hidden>
- Date: Thu, 22 May 2008 14:19:12 -0400
On Thu, May 22, 2008 at 1:38 PM, <email@hidden> wrote:
>
> 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.
How have you determined that it's returning an NSPathStore2 object? What
were the symptoms of the problems you're having, and what led you to believe
that the NSPathStore2 object is causing them?
The reason I'm asking this is, NSString is a class cluster. If you're more
familiar with Java or C++, you can think of it as a pure virtual class for
the purposes of this discussion, in that you're never going to see an actual
instance of NSString. Every method that's declared as returning an NSString*
actually returns an instance of a subclass of NSString, and this is both
normal and expected.
So, the fact that you're getting an instance NSPathStore2 instead of
NSString *could* be a symptom of a problem, but it's at least equally likely
that it isn't - hence the need for clarification.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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