RE: Re: Static text over an image

2008-10-30 Thread Mark Allan
I've seen this happen *every* time in IB if the items in question are within an 
NSView.  It was driving me crazy for a while until I figured out (completely by 
accident) that the order has to be reversed when you're setting up the NIB/XIB 
file for it to work correctly.

It's a real PITA because to see and edit the text which you want, eventually, 
to appear on top of the image, you constantly have to select the image/text and 
go the Layout menu and move it back and forward as required, and then remember 
to move the text back behind the image before you save and rebuild your project.


Mark 
PS. Apologies if this message arrives twice - I'm not convinced it sent 
properly first time.

-Begin Quoted Message-

I've seen it happen a few times where views will be layered in the  
reverse order that they're set to in IB. Try moving the label behind  
the image and see if that gives you the desired result.

Cheers,
Brandon

On 30-Oct-08, at 12:48 AM, Andre Masse wrote:

 Hi,

 I want to have text over an image. Even though I set it up in IB  
 (move image to the back, bring the label to the front), the label is  
 always drawn behind the image. Is there a setting to be set in IB  
 for that or do I have to draw the text myself?

 Thanks,

 Andre Masse

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


RE: Re: Static text over an image

2008-10-30 Thread Alex Curylo


On 30-Oct-08, at 5:42 AM, [EMAIL PROTECTED] wrote:

I've seen this happen *every* time in IB if the items in question  
are within an NSView.  It was driving me crazy for a while until I  
figured out (completely by accident) that the order has to be  
reversed when you're setting up the NIB/XIB file for it to work  
correctly.


It's a real PITA because to see and edit the text which you want,  
eventually, to appear on top of the image, you constantly have to  
select the image/text and go the Layout menu and move it back and  
forward as required, and then remember to move the text back behind  
the image before you save and rebuild your project.



Or you could do what I did when I had a project this was an intense  
annoyance for what with the several-times-a-day client updates, which  
is to just programmatically reverse the order on load. That smoothed  
development considerably.


--
Alex Curylo -- [EMAIL PROTECTED] -- http://www.alexcurylo.com/

There are two great secrets to success in life.
The first is to not tell everything you know.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]