• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSControl with CALayer in NSToolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSControl with CALayer in NSToolbar


  • Subject: NSControl with CALayer in NSToolbar
  • From: Peter Krajčík <email@hidden>
  • Date: Sun, 25 Jul 2010 02:12:11 +0200

Hello,

I creted an IB Palette for control with CALayer I animate.
This layer is a sublayer of the [control layer].
Control works normally in the IB, the IB Simulator and also in my test application.
When I use this control as a NSToolbarItem item of NSToolbar, drawLayer: in my delegate is never called when the NSToolBar is in customize state in the IB Simulator or in my test application.
If I open customize window of NSToolbar in the IB (while in desgin mode), drawLayer: is called and draws what I need.
If I drag the item from the NSToolBar's customize window to app window (in IB Simulator or test app), drawLayer: is called and everything works.

I also noticed that when I use any of Apple NSControls in NSToolbar and set them to WantsLayer:YES in IB Inspector, add some shadow, just to see if CALayer effect works, control's layer also doesn't work in NSToolBar in customize state - so no shadow while customize window of NSToolbar is open.
I think it is somehow related to NSMatrix (I suppose NSToolbarItems are arranged in NSMatrix ...)

Any idea how to fix it ?

Thank you.


Peter


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: NSBrowser and double click
  • Next by Date: Re: Deselect keyboard focus of an NSMatrix cell
  • Previous by thread: Re: NSBrowser and double click
  • Next by thread: If you were me, how do you build mind map app on cocoa?
  • Index(es):
    • Date
    • Thread