Re: Strange Editing behaviour in NSBrowserCell
Re: Strange Editing behaviour in NSBrowserCell
- Subject: Re: Strange Editing behaviour in NSBrowserCell
- From: Wain <email@hidden>
- Date: Sun, 9 Apr 2006 08:51:37 +0100
Hi,
I don't think you can directly use NSBrowserCell, you'll need to
create a subclass.
Look at 'ImageAndTextCell' from the dev example DragNDropOutlineView.
Wain
On 9 Apr 2006, at 08:15, desktoast music productions wrote:
I set the dataCell of my NSOutlineView to NSBrowserCell, so it
displays an
items image and title (just like in the finder’s list mode). I made
some of
these item editable, so that users can set up their own item names.
This all
works fine so far.
Problem is, when you select (double-click) a title, the item’s image
disappears and the now selected title shifts to the left. When
editing ends,
the image reappears again.
I guess this behaviour is the result of just setting NSBrwoserCell
to [cell
setEditable:YES] ?
Could anybody please give me a hint, how to fix this, so that
double-clicking an NSBrowserCell only selects its title part (just
like when
you change a file’s name in finder’s list mode)?
Peter
--
peter schwaiger
desktoast music productions
http://www.autlawmusic.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