Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizable field editor in NSTableView



You need to add an auxiliary view to the field editor by replacing it with a custom subclass.
What I did was create a custom scrollview, add a text view in it, use the scrollview to resize the enclosing
textview, and use forward invocation to call all the other methods sent to the field editor past the enclosing
view to its real destination.


In other words, the returned field editor (from the window delegate) checks if
the calling object is an NSTextfieldCell (specifically my custom subclass) and returns my special view that contains
the textview/scrollview combo and fakes itself as just a texteditor by forward invocation. Otherwise you return the normal
windows field editor...


Its possible thanks to Objective-C runtime.

On 平成 17/09/01, at 8:17, Dave Rosborough wrote:

Hello all!

I was wondering if anyone has any tips on getting a field editor to resize during editing in an NSTableView? I've got a table view with variable row heights working correctly using tableView:heightOfRow: , but I would really like to be able to resize the row (or at least the field editor until editing is complete) while the user is entering text. I've been looking through the archives and searching the web, but have come up dry. Any pointers?

Thanks,
Dave Rosborough

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Resizable field editor in NSTableView (From: Dave Rosborough <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.