• 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
Newbie: help with NSTableView and NSPopUpButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie: help with NSTableView and NSPopUpButtonCell


  • Subject: Newbie: help with NSTableView and NSPopUpButtonCell
  • From: Martin Linklater <email@hidden>
  • Date: Fri, 19 Aug 2005 09:54:27 +0100

Hi - I'm new to Cocoa and I'm stuck with my first 'go it alone' application.

I have an NSTableView with 5 columns. This is controlled by an NSArrayController. I have been following Hillegass's book and have got 'Create' and 'Delete' buttons working fine.

Currently, the columns of the table hold NSString and float values. My next step is to change one of the columns to hold a predefined multi-choice set of values. For this I'm going to us NSPopUpButton Cell object.

I've been hunting through the docs and online, and my head is hurting from the sheer amount of info out there, none of which seems to be a simple and concise example of what I want to do.

So my questions are:

How to I define which options are available in the NSPopUpButton cells ? They will all be the same for each row, so I don't need to do anything fancy. I also don't need them to be editable or user-modifyable. Can someone show me how to set the values up please ?

Once I've got the values set up, how do I interrogate and set the values for each row ? I've looked at some code which seems to do this, but didn't have an NSArrayController involved, so I'm confused as to what I need to do to get it working via the NSArrayController ?

Apologies if this has been covered somewhere on this list before - I'm going thorugh the Hillegass book and things are slowly making sense, but whenever I try to do something a little different I'm faced with a mountain of complex documentation which just serves to confuse me.

thanks for any help you can give.

---
http://homepage.mac.com/mslinklater
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Newbie: help with NSTableView and NSPopUpButtonCell
      • From: Martin Linklater <email@hidden>
  • Prev by Date: Re: Launching other app with iTunes?
  • Next by Date: NSTableView selectRowIndexes et notifications : did it change recently ?
  • Previous by thread: Location of NSPopUpButton selectedValue Null placeholder
  • Next by thread: Re: Newbie: help with NSTableView and NSPopUpButtonCell
  • Index(es):
    • Date
    • Thread