FROM : Peter Maurer
DATE : Thu May 22 22:53:16 2008
> 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.
DATE : Thu May 22 22:53:16 2008
> 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.
| Related mails | Author | Date |
|---|---|---|
| <andrew | May 22, 19:38 | |
| j o a r | May 22, 19:44 | |
| David Duncan | May 22, 19:45 | |
| Sherm Pendley | May 22, 20:19 | |
| Peter Maurer | May 22, 22:53 | |
| Clark Cox | May 23, 00:20 |






Cocoa mail archive

