FROM : Torsten Curdt
DATE : Fri Feb 15 23:53:48 2008
On 15.02.2008, at 20:56, j o a r wrote:
>
> On Feb 15, 2008, at 11:30 AM, Torsten Curdt wrote:
>
>> I'd assume I would have to come up with a FolderController
>> extending either NSObjectController or NSController. Or extend
>> NSArrayController and fill the array from the folder.
>
>
> I wouldn't subclass these classes for that purpose. Create a class
> that represents a folder at a given path and give the instances of
> that class a "contents" property, then bind that property to the
> array controller of your table view.
Hm... but the controller is for NSArray's only ...and the class that
represents the folder is no NSArray. Or did you mean to subclass
NSArray?
cheers
--
Torsten
DATE : Fri Feb 15 23:53:48 2008
On 15.02.2008, at 20:56, j o a r wrote:
>
> On Feb 15, 2008, at 11:30 AM, Torsten Curdt wrote:
>
>> I'd assume I would have to come up with a FolderController
>> extending either NSObjectController or NSController. Or extend
>> NSArrayController and fill the array from the folder.
>
>
> I wouldn't subclass these classes for that purpose. Create a class
> that represents a folder at a given path and give the instances of
> that class a "contents" property, then bind that property to the
> array controller of your table view.
Hm... but the controller is for NSArray's only ...and the class that
represents the folder is no NSArray. Or did you mean to subclass
NSArray?
cheers
--
Torsten
| Related mails | Author | Date |
|---|---|---|
| Torsten Curdt | Feb 15, 20:30 | |
| j o a r | Feb 15, 20:56 | |
| Kyle Sluder | Feb 15, 20:56 | |
| Torsten Curdt | Feb 15, 23:50 | |
| Torsten Curdt | Feb 15, 23:53 | |
| Jean-Daniel Dupas | Feb 15, 23:59 | |
| j o a r | Feb 16, 00:10 | |
| Kyle Sluder | Feb 16, 03:10 | |
| Torsten Curdt | Feb 19, 00:14 |






Cocoa mail archive

