• 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
Cocoa-Java: tag() method of NSView no longer called in panther ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: OT: Meaning of .m extension
  • Next by Date: using a 3rd party framework...
  • Previous by thread: ANN: GDL2 (EOF in Objective-C) and GNUstepBase as a Binary Installer for Mac OS X Panther
  • Next by thread: using a 3rd party framework...
  • Index(es):
    • Date
    • Thread