• 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: Newb question: which feature am I looking for?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newb question: which feature am I looking for?


  • Subject: Re: Newb question: which feature am I looking for?
  • From: "Hamish Allan" <email@hidden>
  • Date: Tue, 12 Feb 2008 15:08:18 +0000

May I suggest also having a look at bindings?

I wrote a simple file browser a while ago to illustrate some bugs
NSTreeController / NSBrowser on Tiger (they're fixed in Leopard, now
that the Cocoa Finder requires them to eat their own food!). It's
still available at http://igor.gold.ac.uk/~map01ra/BindTest.zip

Best wishes,
Hamish

On Feb 12, 2008 5:25 AM, frenchyp <email@hidden> wrote:
> Hello all.
>
> I am attempting a simple project to learn more about Cocoa and
> Objective-C programming.
> My goal is to create a simple file-browser using an expandable
> directory tree (NSOutlineView), and to allow the user to select/
> highlight a file and to get it's full path displayed in a text box, so
> the text can be copied and used to open the file in VI.
> I got the directory tree part to work, thanks to the documentation.
> Now I need to be able to detect that a file name has been highlighted
> (filenames are kept in NSTextFieldCells), call a controller method,
> and access the filename itself.
> My problem is that I have no idea how to do that. I assumed that I
> would be able to find an outlet or an action through the interface
> builder, but it's not as simple as I thought. I also looked at mouse
> and keyboard events, but it seems to be way too low level for what I
> am looking for.
>
> What's the right 'tool' for me?
>
> Thank you for your help
>
> Pierre
>
> _______________________________________________
>
> 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
>
_______________________________________________

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

References: 
 >Newb question: which feature am I looking for? (From: frenchyp <email@hidden>)

  • Prev by Date: Re: Binding NSArrayController to program
  • Next by Date: MEETING: Chicago CocoaHeads / CAWUG - Eclipse & WO
  • Previous by thread: Re: Newb question: which feature am I looking for?
  • Next by thread: Re: Newb question: which feature am I looking for?
  • Index(es):
    • Date
    • Thread