Hello list,

In my application, there are several CALayers (actually subclasses of CALayers) 
that are sublayers of my root layer.  The user can then drag these layers 
around and select them, etc.  Dragging works fine.

When a user selects/deselects one of the layers, the following code snippet is 
executed:

for( int i = 0; i < [[_workspaceLayer sublayers] count]; i++ ) {
  MRWorkspaceItemLayer *ab = [[_workspaceLayer sublayers] objectAtIndex:i];
  if ( [[_workspaceItemsController selectionIndexes] containsIndex:i] ) {
    ab.borderColor=CGColorCreateGenericRGB(1.0f,1.0f,1.0f,1.0f);
    ab.borderWidth=1.0;
  }
  else {
    ab.borderWidth=0.0;
  }
}

However, I keep getting this output in my console: 


2010-06-17 02:49:13.464 Revapp[4838:a0f] expecting model layer not copy: 
MRWorkspaceItemLayer[(125,125)]


I tried wrapping that code in try/catch blocks, and apparently no exception is 
thrown.

What's even more peculiar is that when I comment out 
  ab.borderColor = ...
  ab.borderWidth = ...
statements, the weird console output does not appear

Or, when I comment out the 
  if ( [[_workspaceItemsController selectionIndexes] containsIndex:i] ) {
statement, the weird console output also does not appear!

A google search for "expecting model layer not copy" did not help either.

Anyone have any ideas as to what might be going on?

Thanks!

-Ajay_______________________________________________

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