On Thu, May 22, 2008 at 1:38 PM, <[EMAIL PROTECTED]> 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 protected]) 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
