• 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
Subview Ordering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Subview Ordering
      • From: Henry McGilton <email@hidden>
    • Re: Subview Ordering
      • From: Sean Murphy <email@hidden>
  • Prev by Date: IPhoto-Like Toolstrips
  • Next by Date: Distributed Objects and Control Tracking
  • Previous by thread: Re: IPhoto-Like Toolstrips
  • Next by thread: Re: Subview Ordering
  • Index(es):
    • Date
    • Thread