Subview Ordering
Subview Ordering
- Subject: Subview Ordering
- From: Drarok Ithaqua <email@hidden>
- Date: Fri, 4 Aug 2006 00:58:30 +0100
I've had a look in the archives and the docs, but I seem to only find
one answer which seems a little convoluted.
I want to bring a view to the front of my window, like in IB (Layout -
> Bring To Front / Send To Back), but the only
way I can find is
- (void)sortSubviewsUsingFunction:(int (*)(id, id, void *))compare
context:(void *)context
I've tried
- (void)replaceSubview:(NSView *)oldView with:(NSView *)newView
in case that worked, but nothing happens.
I can achieve the functionality I want by using IB to put the view in
front, and setting it as hidden,
but that's very inconvenient if I need to access the objects behind it.
It's been mentioned in the archives here:
http://lists.apple.com/archives/cocoa-dev/2002/May/msg01757.html
But that only mentions sortSubviewsUsingFunction. I was hoping there
was a new method that's been introduced since that thread.
If this isn't possible - I guess I should use a tabless NSTabView, or
a sheet?
Thanks in advance for any advice you can offer.
Also - apologies for the really spaced out text - for some reason
Mail decided to go into double spaced mode half way through this
message?!
_______________________________________________
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