Re: What is an id?

2008-05-22 Thread I. Savant
On May 22, 2008, at 7:27 PM, Jens Alfke wrote: It's also a classic seafood restaurant in Seattle: Ivar's Acres Of Clams. How geeky are we that we *both* apparently googled "ivar" to see how common it was as a name. ;-) -- I.S.

Re: What is an id?

2008-05-22 Thread Jens Alfke
On 22 May '08, at 11:03 AM, Dave DeLong wrote: For future reference, "ivar" (beyond being my middle name) is short for "Instance Variable". It's also a classic seafood restaurant in Seattle: Ivar's Acres Of Clams. Would be a great site f

Re: What is an id?

2008-05-22 Thread Scott Anguish
On May 22, 2008, at 1:05 PM, john darnell wrote: Okay, this is a really basic question, but I need some help figuring out what the code wants. From the Obj-C Programming Language Guide http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_950_section_3.html#

Re: What is an id?

2008-05-22 Thread Dave DeLong
This is slightly off topic, but it took me forever to figure out what "ivar" meant, because that's my middle name and I don't pronounce it "eye-var", I pronounce it "ee-var", which borked up the meaning in my mind. For future reference, "ivar" (beyond being my middle name) is short for "Instance V

Re: What is an id?

2008-05-22 Thread Scott Ribe
> ...for a text column > that would be an NSString or NSAttributedString, Also, NSNumber or NSDate. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: What is an id?

2008-05-22 Thread mmalc crawford
On May 22, 2008, at 10:05 AM, john darnell wrote: I tried to do a search in Cocoa Help on id and as you might imagine, I got lots and lots of hits, none of which looked anywhere near what I wanted for an explanation of what id is.

Re: What is an id?

2008-05-22 Thread Jens Alfke
On 22 May '08, at 10:11 AM, j o a r wrote: It expects you to return an object that will be used by the cells in your table view to display their respective value. To be specific, the value you return is passed to the cell's - setObjectValue: method. So you should return a value that's app

Re: What is an id?

2008-05-22 Thread Andrew Merenbach
Not that I want to respond to myself, but I want to correct: You'll "get a warning" if an action call is not implemented by NSObject. Sorry for the confusion! Also, I want to state that I do feel that id is a very useful thing, despite how my first paragraph below makes it sound. But that's

Re: What is an id?

2008-05-22 Thread Andrew Merenbach
Hi, John, There have been discussions on this list in the past, some of which might (or might not!) be helpful. Some, IIRC, lapsed into debate as to whether the "id" concept (a) was a bad idea, (b) was useless, (c) was confusing, or (d) made things difficult. Basically, "id" isn't exact

Re: What is an id?

2008-05-22 Thread Sherm Pendley
On Thu, May 22, 2008 at 1:05 PM, john darnell <[EMAIL PROTECTED]> wrote: The question is, what does the code want me returning as an id? Any object. The next obvious question is, of course, why not declare the method as returning an NSObject* - and the answer to that one is that, simply put, no

Re: What is an id?

2008-05-22 Thread j o a r
On May 22, 2008, at 10:05 AM, john darnell wrote: The question is, what does the code want me returning as an id? I tried to do a search in Cocoa Help on id and as you might imagine, I got lots and lots of hits, none of which looked anywhere near what I wanted for an explanation of what id is.

Re: What is an id?

2008-05-22 Thread Bill Bumgarner
On May 22, 2008, at 10:05 AM, john darnell wrote: Okay, this is a really basic question, but I need some help figuring out what the code wants. In the documentation for NSTableView, I am told that I must implement as part of a datasource the following function: - (id) tableView:(NSTableVie

Re: What is an id?

2008-05-22 Thread Patrick Burleson
On Thu, May 22, 2008 at 12:05 PM, john darnell <[EMAIL PROTECTED]> wrote: > The question is, what does the code want me returning as an id? I'm new to this to, but if I remember correctly, the type id is "any object". So the method implemented returns an Object value for a particular column/row co

What is an id?

2008-05-22 Thread john darnell
Okay, this is a really basic question, but I need some help figuring out what the code wants. In the documentation for NSTableView, I am told that I must implement as part of a datasource the following function: - (id) tableView:(NSTableView *) aTableView objectValueForTableColumn: (NSTableColumn