Skip navigation.
 
mlRe: Overlapping Views
FROM : David Alger
DATE : Fri Nov 23 18:40:21 2007

On Nov 23, 2007, at 11:16 AM, Jean-Daniel Dupas wrote:

>>
>> This particular app would be a full-screen app. The main window, 
>> covering most if not all of the screen, would have a background 
>> image with other controls directly on top of it. They would be 
>> customized to the extent I could in IB & sub-classed if necessary, 
>> which I know that I will have to do to achieve the behavior & 
>> appearance I want in some. Since the NSImage view doesn't support 
>> sub-views (I'm assuming it doesn't since IB won't let me put any in 
>> it), I was trying to have the NSImage view behind the other views 
>> so I wouldn't have to customize a NSView & draw the image manually.
>>
>> This will be my very first app written in Cocoa/Obj-C, and I'm very 
>> used to having compositing views in Carbon. I won't be overlapping 
>> views like this though if it isn't really supported, since I don't 
>> want my app to possibly have erratic drawing/refresh behavior.
>>
>>
>> Regards,
>> David Alger

>
> Assumption are evil.


Yeah, I hold to that in most cases as well. :-) What I meant was that 
it doesn't support it in IB. Since I'm new in Cocoa, I couldn't have 
told you if it would in code.

> AFAK Image view should support subview.
> IB will not let you add subview, but you can replace your image view 
> by a custom view. Set the class of the custom view to NSImageView, 
> and set the image you want to display in -awakeFromNib.
> That's the easiest way i see to workaround this IB limitation.


Thanks, I'll probably try and go this route, if it works. It is 
definitely worth a try.

Thanks,
David Alger



********************
Ron Paul for President 2008
http://ronpaul2008.com/

RESTORE THE REPUBLIC & RETAIN YOUR RIGHTS

Related mailsAuthorDate
mlOverlapping Views David Alger Nov 23, 04:49
mlRe: Overlapping Views Ricky Sharp Nov 23, 05:02
mlRe: Overlapping Views Jon Hess Nov 23, 08:09
mlRe: Overlapping Views Scott Anguish Nov 23, 09:06
mlRe: Overlapping Views David Alger Nov 23, 14:22
mlRe: Overlapping Views Ricky Sharp Nov 23, 14:27
mlRe: Overlapping Views Alastair Houghton Nov 23, 17:01
mlRe: Overlapping Views David Alger Nov 23, 18:03
mlRe: Overlapping Views Ricky Sharp Nov 23, 18:16
mlRe: Overlapping Views Alastair Houghton Nov 23, 18:16
mlRe: Overlapping Views Jean-Daniel Dupas Nov 23, 18:16
mlRe: Overlapping Views David Alger Nov 23, 18:40
mlRe: Overlapping Views Jon Hess Nov 24, 06:06
mlRe: Overlapping Views Scott Anguish Nov 24, 08:40
mlRe: Overlapping Views Uli Kusterer Nov 24, 11:25
mlRe: Overlapping Views Uli Kusterer Nov 24, 11:29
mlRe: Overlapping Views Scott Anguish Nov 24, 23:47
mlRe: Overlapping Views Uli Kusterer Nov 26, 09:57