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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to