• 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
anObject? editing cell in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

anObject? editing cell in NSTableView


  • Subject: anObject? editing cell in NSTableView
  • From: Eric Blom <email@hidden>
  • Date: Fri, 28 Mar 2003 20:20:20 -0800

I have found some helpful information in the archives of this list and in the documentation but I'm struggling to understand what I'm sure is a basic principal of Cocoa programming. What does "anObject" mean in example code and how do I use it?

Specifically I'm trying to edit the cells of a NSTable view. I've started to implement the tableView:setObjectValue method but I don't understand the following line from the Apple example (http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ ProgrammingTopics/TableView/Tasks/UsingTableDataSource.html).

[theRecord setObject:anObject forKey:[TableColumn identifier]];

In the end what I need to determine is if anObject is equal to one of the 5 valid values for the cell. For example is anObject equal to "read" where the equality is not case sensitive.

Thanks for any suggestions you might have.

Cheers,
Eric

-----------------------------------------------------------------
Eric D. Blom
email@hidden

Be at war with your vices, at peace with your neighbors, and let
every New Year find you a better man. --Benjamin Franklin
-----------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: anObject? editing cell in NSTableView
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Fastersoftware.com
  • Next by Date: Re: Is there a ready chart plotting view?
  • Previous by thread: Fastersoftware.com
  • Next by thread: Re: anObject? editing cell in NSTableView
  • Index(es):
    • Date
    • Thread