Oops, sorry. Didn't see your reply to self.

2009/5/13 Trygve Inda <cocoa...@xericdesign.com>:
>> imageView = [[NSImageView alloc] initWithFrame:NSMakeRect(0, 0,
>> dispBounds.size.width, dispBounds.size.height)];
>>
>> [imageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
>>
>> window = [[NSWindow alloc] initWithContentRect:dispBounds
>> styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];
>>
>> [window setLevel:kCGDesktopWindowLevel+1];
>>
>> [[window contentView] setAutoresizesSubviews:YES];
>>
>> [[window contentView] addSubview:imageView];
>>
>> This works to create a window into which I draw an image, but clicks on the
>> desktop do nothing to the icons sitting on the desktop.
>>
>> Why?
>
> Never mind - it seems I have to call
>
> [window setIgnoresMouseEvents:YES];
>
>
> Bit odd since the icons are already above the window in the Z-order of
> things.
>
> Trygve
>
>
> _______________________________________________
>
> 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/slasktrattenator%40gmail.com
>
> This email sent to slasktrattena...@gmail.com
>
_______________________________________________

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 arch...@mail-archive.com

Reply via email to