Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString vs NSPathStore2



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >NSString vs NSPathStore2 (From: <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.