On Thu, May 22, 2008 at 11:19 AM, Sherm Pendley <[EMAIL PROTECTED]> wrote:
> 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.

As you've deduced, NSPathStore2 is a subclass of NSString. Getting an
instance thereof is perfectly normal.

So, to the OP: Pay no attention to the man behind the curtain :)

-- 
Clark S. Cox III
[EMAIL PROTECTED]
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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]

Reply via email to