Cocoa-Java: tag() method of NSView no longer called in panther ?
Cocoa-Java: tag() method of NSView no longer called in panther ?
- Subject: Cocoa-Java: tag() method of NSView no longer called in panther ?
- From: Marc Pergand <email@hidden>
- Date: Mon, 24 Nov 2003 01:46:43 -0800
Cocoa-Java: tag() method of NSView no longer called in panther ?
I have a CustomView created in IB which I assign a subclass of NSView
that return a value in the tag method like this:
public class MyView extands NSView {
public MyView(NSRect frame)
{
super(frame);
}
public int tag()
{
return 200;
}
}
This allows me to found MyView object with the viewWithTag method and
it works perfectly in Jaguar but not at all in panther ( MyView is not
found and null is return), cause it seems that the tag() method of my
class is never called.
I try to use NSControl instead of NSView with no changes.
I used this method in one of my java program and of course it crashs at
startup with a null pointer exception.
Any idea of what the problem is ?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.