• 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: Temporary text display over NSTableView (was NSTextField over NSImageView?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Temporary text display over NSTableView (was NSTextField over NSImageView?)


  • Subject: Re: Temporary text display over NSTableView (was NSTextField over NSImageView?)
  • From: Andy Lee <email@hidden>
  • Date: Sun, 23 Apr 2006 18:06:46 -0400

On Apr 23, 2006, at 5:09 PM, Ricky Sharp wrote:
On Apr 23, 2006, at 10:20 AM, James Bucanek wrote:
On the other hand, making an NSTextField a subview of an NSTableView just seems bizarre and I'm afraid of messing up the NSTableView's subview(s).

This is the approach I would have tried. Does an NSTableView even have subviews? Note that the table view shouldn't be confused with the scroll view that contains it.


On the other hand, now that Ondra and Ricky have advocated the overlay window approach, I'd give that serious consideration. It has the advantage that it doesn't care whether the table has subviews.

I would look into using an overlay window. Basically you:
[...]
(d) add logic to show/hide the overlay as needed.

Depending on how permissive you are about resizing the parent window, you might need to (e) listen for resize notifications in case the table view gets resized or clipped in response to resizing of the parent window. The logic could get a little tricky, because if the table view gets clipped, you want the overlay text to be clipped as well.



I just thought of another possible approach: when the table is logically empty, you could add a single row to it whose height fills the whole table, and use that cell to display your message.


--Andy

_______________________________________________
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


  • Follow-Ups:
    • Re: Temporary text display over NSTableView (was NSTextField over NSImageView?)
      • From: James Bucanek <email@hidden>
References: 
 >Temporary text display over NSTableView (was NSTextField over NSImageView?) (From: James Bucanek <email@hidden>)
 >Re: Temporary text display over NSTableView (was NSTextField over NSImageView?) (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Temporary text display over NSTableView (was NSTextField over NSImageView?)
  • Next by Date: Re: Animated split view collapsing
  • Previous by thread: Re: Temporary text display over NSTableView (was NSTextField over NSImageView?)
  • Next by thread: Re: Temporary text display over NSTableView (was NSTextField over NSImageView?)
  • Index(es):
    • Date
    • Thread