editWithFrame:inView:editor:delegate:event: in mouseDown:
editWithFrame:inView:editor:delegate:event: in mouseDown:
- Subject: editWithFrame:inView:editor:delegate:event: in mouseDown:
- From: Alexander Spohr <email@hidden>
- Date: Wed, 19 Nov 2008 13:51:29 +0100
Hi list,
I am trying to make a subclass of NSControl that is capable of showing
variable width (and maybe height) content.
Something like a one-row NSTableView without a header. Or like an
NSMatrix with variable cell sizes.
I tried to do it with only one cell to draw the content which works
fine. But when I edit the content with
editWithFrame:inView:editor:delegate:event: it gets jerky. I want to
just use one cell to avoid the overhead of having to synchronize my
model and multiple cells.
So it seems I am doing something wrong here and I feel kind of stupid.
I won’t provide code as I already have some different iterations and
none worked to my liking. I even subclassed NSTableView. Most of my
code _almost_ works and then it blows the display or forgets the
values or...
Could someone please provide me with a -mouseDown: that finally calls
editWithFrame:inView:editor:delegate:event: and maybe the delegate-
method that catches the result and removes the NSTextView (if that is
required).
Thanks,
atze
_______________________________________________
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