• 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: NSView -subviews ordering?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView -subviews ordering?


  • Subject: Re: NSView -subviews ordering?
  • From: Brock Brandenberg <email@hidden>
  • Date: Wed, 29 May 2002 13:01:04 -0500

Hi Matt.

If I call an NSView instance's -subviews method to get an
NSArray of all
immediate subviews of that NSView, is there any guarantee as to the
*order* of the views in the array?

You can also re-order your subviews using sortSubviewsUsingFunction:context:. Its documentation is pretty accurate, except that Apple doesn't make it clear that it should be a C function, not an object method, so you need to put it outside of your @implementation/@end or in an external file. It works much like a qsort function.

Brock Brandenberg

----- industrial design @ bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSView -subviews ordering?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: NSTableView
  • Next by Date: Re: NSTableView
  • Previous by thread: Re: NSView -subviews ordering?
  • Next by thread: Re: NSView -subviews ordering?
  • Index(es):
    • Date
    • Thread