Editable NSBrowser
Editable NSBrowser
- Subject: Editable NSBrowser
- From: Evan Cooke <email@hidden>
- Date: Tue, 18 Jun 2002 15:21:30 -0700
I am trying to created an editable NSBrowser that will allow the user to
navigate with the browser as usual with a single click and edit a cell
with a double click. I have tried setting the browser's cellPrototype
to be an editable cell but the cell starts editing after one click. Is
there a way to tell a NSMatrix or NSCell to begin an editing session.
One way might be to use NSCell's - (void)editWithFrame:(NSRect)aRect
inView:(NSView *)controlView editor:(NSText *)textObj
delegate:(id)anObject event:(NSEvent *)theEvent; but that requires some
parameters I have no idea how to obtain (like the view, editor,
event...). There must be an easier way... I hope.
If someone could point me to a bit sample code that provides this
functionality that would be great too.
thanks
_______________________________________________
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.