Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: folder content as model for NSTableView



On Fri, Feb 15, 2008 at 2:30 PM, Torsten Curdt <email@hidden> 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.

>  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.

--Kyle Sluder
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >folder content as model for NSTableView (From: Torsten Curdt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.