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

Newb question: which feature am I looking for?


  • Subject: Newb question: which feature am I looking for?
  • From: frenchyp <email@hidden>
  • Date: Mon, 11 Feb 2008 21:25:00 -0800

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


  • Follow-Ups:
    • Re: Newb question: which feature am I looking for?
      • From: Graham <email@hidden>
    • Re: Newb question: which feature am I looking for?
      • From: "Hamish Allan" <email@hidden>
    • Re: Newb question: which feature am I looking for?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • Next by Date: Re: @property problem
  • Previous by thread: Re: NSAttributeString change the paragraph style
  • Next by thread: Re: Newb question: which feature am I looking for?
  • Index(es):
    • Date
    • Thread