• 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
RE: Re: NSTableView in-line editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re: NSTableView in-line editing


  • Subject: RE: Re: NSTableView in-line editing
  • From: 양승준 <email@hidden>
  • Date: Wed, 26 Nov 2008 09:50:13 +0900
  • Importance: normal

Oh my god. I'm sorry to have you debug my code. I thought I had missed a point or two in implementing the table view. Well, I did,,, Thank you very much again! ;)
 
-----Original Message-----
From: "Jean-Daniel Dupas"&lt;email@hidden&gt;
To: "Graham Cox"&lt;email@hidden&gt;
Cc: "양승준"&lt;email@hidden&gt;; email@hidden
Sent: 08-11-25(화) 22:45:58
Subject: Re: NSTableView in-line editing
Le 25 nov. 08 à 14:23, Graham Cox a écrit :
>
> On 26 Nov 2008, at 12:16 am, Jean-Daniel Dupas wrote:
>
>>> -(void)tableView:(NSTableView *)aTableView
>>> setObjectValue:anObject
>>> objectValueForTableColumn:(NSTableColumn *)aTableColumn
>>> row:(int)rowIndex
>>> {
>>> id theRecord;
>>> theRecord = [aBuffer objectAtIndex:rowIndex];
>>> [theRecord setObject:anObject forKey:[aTableColumn identifier]];
>>> return;
>>> }
>>
>> You have to implements the -
>> tableView:setObjectValue:forTableColumn:row: method too in your
>> data source.
>> This method will be invoke when a value change and it's up to you
>> to update your model. After that, the table view will automatically
>> retreive the value from your data source (invoking the
>> objectValueForTableColumn method).
>
>
> Well, he did - it's right there ^^^ (admittedly not easy to read in
> the mail, I hope the code isn't formatted like that)
>
Sorry, I'm really not used to this kind of indentation.
>
> Actually, that's it...
> -tableView: setObjectValue: forTableColumn: row:
>
> You have:
>
> -tableView: setObjectValue: objectValueForTableColumn: row:
Definitively not easy to read, else we would have catch it at first
sight ;-)
_______________________________________________

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

References: 
 >NSTableView in-line editing (From: 양승준 <email@hidden>)
 >Re: NSTableView in-line editing (From: Jean-Daniel Dupas <email@hidden>)
 >Re: NSTableView in-line editing (From: Graham Cox <email@hidden>)
 >Re: NSTableView in-line editing (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: [Reposted] Document based resource strategy
  • Next by Date: cocoa and iphone fonts
  • Previous by thread: Re: NSTableView in-line editing
  • Next by thread: cocoadev.com status?
  • Index(es):
    • Date
    • Thread