On Thu, Jun 17, 2010 at 5:09 PM, Ajay Sabhaney <co...@mothercreative.com> wrote: > -The initializer initWithLayer: of my subclass of CALayer, > MRWorkspaceItemLayer is being invoked, even though I never explicitly invoke > this
The documentation for -[CALayer initWithLayer:] describes how this method is used to create the layers for the presentation tree. > > -For when I handle the mouse down event, I tried changing my code from: > > CALayer *layer = [_rootLayer hitTest: where]; > > to > > CALayer *presLayer = [_rootLayer presentationLayer]; > CALayer *layer = [presLayer hitTest: where]; > > but now [[_rootLayer sublayers] indexOfObject:layer] is returning > NSNotFound,but I'm still looking in to this part... Of course, if _rootLayer is a model layer, it can't contain a presentation layer as a sublayer. Have you tried breaking on NSLog or perhaps write, to get a backtrace for the specific line this message is coming from? --Kyle Sluder _______________________________________________ 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