• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Resizable field editor in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizable field editor in NSTableView


  • Subject: Re: Resizable field editor in NSTableView
  • From: Andre <email@hidden>
  • Date: Thu, 1 Sep 2005 09:01:13 +0900

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:
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: This email sent to email@hidden
References: 
 >Resizable field editor in NSTableView (From: Dave Rosborough <email@hidden>)

  • Prev by Date: Resizable field editor in NSTableView
  • Next by Date: Re: making a copy of text in document window
  • Previous by thread: Resizable field editor in NSTableView
  • Next by thread: Out of bounds exception from NSTextView
  • Index(es):
    • Date
    • Thread