• 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: folder content as model for NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: folder content as model for NSTableView


  • Subject: Re: folder content as model for NSTableView
  • From: Torsten Curdt <email@hidden>
  • Date: Fri, 15 Feb 2008 23:50:02 +0100


On 15.02.2008, at 20:56, Kyle Sluder wrote:

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.

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 ;)


cheers
--
Torsten

_______________________________________________

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


  • Follow-Ups:
    • Re: folder content as model for NSTableView
      • From: "Kyle Sluder" <email@hidden>
    • Re: folder content as model for NSTableView
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >folder content as model for NSTableView (From: Torsten Curdt <email@hidden>)
 >Re: folder content as model for NSTableView (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: duplicate interface error
  • Next by Date: Re: duplicate interface error (solved)
  • Previous by thread: Re: folder content as model for NSTableView
  • Next by thread: Re: folder content as model for NSTableView
  • Index(es):
    • Date
    • Thread