Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Z-Order of NSImageViews?

Z-Order of NSImageViews?
Thread Tools
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Dec 24, 2002, 02:30 AM
 
I have two image views. One is smaller than the other and should be on top. It is on top in IB. I build my program.. now it is in the wrong order... Can I programmatically move one to the top or do something in IB? Thanks
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Dec 24, 2002, 11:38 AM
 
Yeah, I've noticed this as well...I threw together a nib with some transparent buttons overlaying some other content...but in the final application, the buttons are underneath the content...
[Wevah setPostCount:[Wevah postCount] + 1];
     
Synotic  (op)
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Dec 24, 2002, 06:55 PM
 
Originally posted by Wevah:
Yeah, I've noticed this as well...I threw together a nib with some transparent buttons overlaying some other content...but in the final application, the buttons are underneath the content...
Ever find out a solution? I guess not Surely there's some sort of fix... anyone?
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 24, 2002, 07:54 PM
 
I assume you've tried "Bring to Front" and "Send to Back," right?
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Synotic  (op)
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Dec 25, 2002, 12:56 AM
 
Originally posted by Chuckit:
I assume you've tried "Bring to Front" and "Send to Back," right?
Yeah done that. Again, it looks fine in IB.. compiles and messes up. I think I will just have to do a messy work around unfortunately.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 25, 2002, 06:39 AM
 
Overlapping sibling NSViews are not supported. That's the official word whenever people have asked, I think.
     
Synotic  (op)
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Dec 25, 2002, 02:03 PM
 
Originally posted by Angus_D:
Overlapping sibling NSViews are not supported. That's the official word whenever people have asked, I think.
I did a workaround where I drew a frameless window over the thing which had an image view over it... it works... but is there a way to also make the NSView transparent while having the NSImageView still display? Essentially all I want drawn is the NSImageView, I don't want the NSView to have a white background... possible? Thanks
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Dec 25, 2002, 02:23 PM
 
Oh...I ended up putting the view I wanted in front in the back...and sure enough, it was in front in the final build.

*shrug*
[Wevah setPostCount:[Wevah postCount] + 1];
     
Synotic  (op)
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Dec 25, 2002, 08:15 PM
 
Originally posted by Wevah:
Oh...I ended up putting the view I wanted in front in the back...and sure enough, it was in front in the final build.

*shrug*
and it works Weird! At least it works But I still have the question about making the background of the NSView transparent so that all you see is the NSImageView (the image in it is transparent and I want the desktop to show underneath) Thanks for anymore help.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 26, 2002, 06:42 AM
 
See the RoundTransparentWindow example project at http://developer.apple.com/samplecode
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:59 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2