Re: Static text over an image

2008-10-30 Thread Rob Keniger
On 31/10/2008, at 1:26 AM, Shawn Erickson wrote: You normally deal with this by nesting views... your text view would be a subview of the image view or by doing custom rendering. Exactly right. As already stated, you add a view as a subview of another by double-clicking the parent view (in

Re: Static text over an image

2008-10-30 Thread Andre Masse
Thanks for your code snippet, I get the idea now. Andre Masse On Oct 30, 2008, at 12:07, Alex Curylo wrote: 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 b

Re: Static text over an image

2008-10-30 Thread Alex Curylo
On 30-Oct-08, at 8:01 AM, [EMAIL PROTECTED] 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

Re: Static text over an image

2008-10-30 Thread Andre Masse
Thanks for the link Shawn. I guess I'll have to live with that. Andre Masse On Oct 30, 2008, at 11:26, Shawn Erickson wrote: "Note: For performance reasons, Cocoa d

Re: Static text over an image

2008-10-30 Thread Shawn Erickson
On Wed, Oct 29, 2008 at 9:48 PM, Andre Masse <[EMAIL PROTECTED]> 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 d

Re: Static text over an image

2008-10-30 Thread John Joyce
On Oct 30, 2008, at 7:41 AM, [EMAIL PROTECTED] wrote: Date: Thu, 30 Oct 2008 10:31:03 From: Mark Allan <[EMAIL PROTECTED]> Subject: RE: Re: Static text over an image To: Brandon Walkin <[EMAIL PROTECTED]>, Andre Masse <[EMAIL PROTECTED]> Cc: Cocoa Dev M

Re: Static text over an image

2008-10-30 Thread Andre Masse
On Oct 30, 2008, at 09:08, Alex Curylo wrote: 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. Pardon my

Re: Static text over an image

2008-10-30 Thread Andre Masse
On Oct 30, 2008, at 01:32, Andrew Merenbach wrote: What operating system are you deploying to, and which SDK are you linking against? If you're using anything before Leopard, you're out of luck with your present method, as clipping was not enforced among sibling views prior to 10.5. There

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

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

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

Re: Static text over an image

2008-10-29 Thread Brandon Walkin
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 ima

Re: Static text over an image

2008-10-29 Thread Rob Keniger
On 30/10/2008, at 2:48 PM, Andre Masse wrote: 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 mysel

Re: Static text over an image

2008-10-29 Thread Andrew Merenbach
On Oct 29, 2008, at 9:48 PM, 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 tex

Static text over an image

2008-10-29 Thread Andre Masse
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 _