• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString vs NSPathStore2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSString vs NSPathStore2
      • From: "Clark Cox" <email@hidden>
References: 
 >NSString vs NSPathStore2 (From: <email@hidden>)

  • Prev by Date: Re: A directory site for open-source Cocoa components?
  • Next by Date: Re: Cocoa et al as HCI usability problem
  • Previous by thread: Re: NSString vs NSPathStore2
  • Next by thread: Re: NSString vs NSPathStore2
  • Index(es):
    • Date
    • Thread