• 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: Peter Maurer <email@hidden>
  • Date: Thu, 22 May 2008 22:53:16 +0200

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. Is there are a way
to convert NSPathStore2 to an NSString?

NSPathStore2s are NSStrings -- cf. <http://www.cocoabuilder.com/archive/message/cocoa/2004/11/5/120866 >, for instance. You can also check themself yourself by sending them a [object isKindOfClass: [NSString class]] message. (That's what I did when I encountered them the first time.)


What exactly is the problem you're experiencing? It's probably not related to what your NSOpenPanel is returning.

Peter.
_______________________________________________

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


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

  • Prev by Date: re: CoreData Statement Still Active (CoreData Multithreading)
  • Next by Date: RE: fundamental question: how do I call controller methods from other classes?
  • Previous by thread: Re: NSString vs NSPathStore2
  • Next by thread: post message to all the list members (cocoa-dev)
  • Index(es):
    • Date
    • Thread