• 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: Static text over an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static text over an image


  • Subject: Re: Static text over an image
  • From: Alex Curylo <email@hidden>
  • Date: Thu, 30 Oct 2008 09:07:32 -0700


On 30-Oct-08, at 8:01 AM, email@hidden wrote:

which is to just programmatically reverse the order on load. That
smoothed development considerably.

Pardon my ignorance (still learning Cocoa) but can you point to me what class/method to use for that?


The exact details escape me now, but I seem to recall that since the order of -subviews was not completely deterministic depending on what the latest mucking about in the nib had been I resorted to something like

NSView** putTheseInFront = {
   _ibOverlay1,
   _ibTextField2,
   ...
   nil
}

while (*putTheseInFront)
{
   NSView* itsSuperview = [*putTheseInFront superview];
   [[*putTheseInFront retain] removeFromSuperview];
   [itsSuperview addSubview:*putTheseInFront)];
   putTheseInFront++;
}

Not exactly scalable, but it sorted the workflow at hand nicely with no apparent runtime delay.

--
Alex Curylo -- email@hidden -- http://www.alexcurylo.com/

"I am so honoured to know you, the first glider off Eagle.
 That is soooooooo cool."
    -- Martina Lang



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Static text over an image
      • From: Andre Masse <email@hidden>
  • Prev by Date: Re: What's wrong with this font thing?
  • Next by Date: Re: What's wrong with this font thing?
  • Previous by thread: Re: Static text over an image
  • Next by thread: Re: Static text over an image
  • Index(es):
    • Date
    • Thread