FROM : Jean-Daniel Dupas
DATE : Fri Feb 15 23:59:17 2008
Le 15 févr. 08 à 23:50, Torsten Curdt a écrit :
>
> On 15.02.2008, at 20:56, Kyle Sluder wrote:
>
>> On Fri, Feb 15, 2008 at 2:30 PM, Torsten Curdt <<email_removed>>
>> 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.
>>
>> Or go old-school and provide a data source. Probably easier in
>> this situation.
>
> Ehm ...I am still a newbie that basically started my first real
> Cocoa project about 1,5 weeks ago. So old-school "data source" does
> not tell me that much yet :) Care to elaborate?
>
>>> In general the problem I see is that the model could change
>>> "underneith". A file could have been deleted/added outside the
>>> application and not through the controller. Of course I could poll
>>> the directory for changes ...or is there a way to register to
>>> receive
>>> file modification events?
>>
>> New in Leopard: FSEvents. Tiger and below have fseventsd, but it's
>> private.
>
> OK ...then I will go for polling - for now. Still waiting for the
> new MBPs to switch to Leopard ;)
Have a look at kevent too (there is an Obj c wrapper for it: UKKQueue. http://www.zathras.de/angelweb/sourcecode.htm)
.
It's far better than polling.
DATE : Fri Feb 15 23:59:17 2008
Le 15 févr. 08 à 23:50, Torsten Curdt a écrit :
>
> On 15.02.2008, at 20:56, Kyle Sluder wrote:
>
>> On Fri, Feb 15, 2008 at 2:30 PM, Torsten Curdt <<email_removed>>
>> 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.
>>
>> Or go old-school and provide a data source. Probably easier in
>> this situation.
>
> Ehm ...I am still a newbie that basically started my first real
> Cocoa project about 1,5 weeks ago. So old-school "data source" does
> not tell me that much yet :) Care to elaborate?
>
>>> In general the problem I see is that the model could change
>>> "underneith". A file could have been deleted/added outside the
>>> application and not through the controller. Of course I could poll
>>> the directory for changes ...or is there a way to register to
>>> receive
>>> file modification events?
>>
>> New in Leopard: FSEvents. Tiger and below have fseventsd, but it's
>> private.
>
> OK ...then I will go for polling - for now. Still waiting for the
> new MBPs to switch to Leopard ;)
Have a look at kevent too (there is an Obj c wrapper for it: UKKQueue. http://www.zathras.de/angelweb/sourcecode.htm)
.
It's far better than polling.
| 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

