anObject? editing cell in NSTableView
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.