• 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: Custom Cell with Image & Text + OutlineView + Bindings Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Cell with Image & Text + OutlineView + Bindings Problem


  • Subject: Re: Custom Cell with Image & Text + OutlineView + Bindings Problem
  • From: Wain <email@hidden>
  • Date: Thu, 9 Mar 2006 18:22:35 +0000

Hi,

You probably want to modify the field editor, have you tried implementing - (NSText *)setUpFieldEditorAttributes:(NSText *) textObj in your subclass?

Wain

On 9 Mar 2006, at 10:40, Thilo Ettelt wrote:

Hello,

I can't find a solution for the following problem I'm facing:

I've got a NSTextCell subclass whose objectValue is being set through a binding on the tablecolumn of a NSOutlineView.My subclassed textcell draws a color rectangle and the appropriate text by using the objectValue's -valueForKey: method (the objectValue is a custom object having 2 values: color and title- and it's binded to a treeController).
So far so good, but now I want to make this cell editable. As soon as I doubleclick on it the selected, editable text is the pointer to the objectvalue and I can't find a way to change that. I actually need the -valueForKey:@"title" from the objectValue object. But how?


Does anyone have an idea how to handle this?


Sincerely yours, Thilo Ettelt


___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
_______________________________________________
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
References: 
 >Custom Cell with Image & Text + OutlineView + Bindings Problem (From: Thilo Ettelt <email@hidden>)

  • Prev by Date: Re: Select an Item in NSOutlineView
  • Next by Date: Dropping controls on subclassed NSView
  • Previous by thread: Custom Cell with Image & Text + OutlineView + Bindings Problem
  • Next by thread: Re: Custom Cell with Image & Text + OutlineView + Bindings Problem
  • Index(es):
    • Date
    • Thread