Instantiate NSCell in IB?
Instantiate NSCell in IB?
- Subject: Instantiate NSCell in IB?
- From: Rams <email@hidden>
- Date: Sat, 15 Feb 2003 00:38:12 -0500
Hi all,
How would I go about Instantiating a NSCell, or an NSCell subclass? It
seems impossible in IB, but then if you look at the outlets in a
NSTableColumn and there sits 'dataCell'...
Yes yes, assign it programmatically. I do this, I'm just trying to
find a work-around to an annoying bug. I have a java port of the
ImageAndTextCell class from DragNDropOutlineView. Every time you click
in that cell it barfs out...
2003-02-15 00:21:33.460 myApp[1314] ObjCJava: no java object for
0x186c250<ImageAndTextCell>
2003-02-15 00:21:33.460 myApp[1314] ObjCJava: can't forward method
description
2003-02-15 00:21:33.461 myApp[1314] ObjCJava: no java object for
<ImageAndTextCell: 0x186c250>
2003-02-15 00:21:33.461 myApp1314] ObjCJava: can't forward method
setImage:
Apparently the object is being cleaned up by one of the two languages
before Obj-C is done with it. I've tried keeping a reference, no luck.
I've tried adding it to an NSArray, and keeping a reference to that,
as Apple's docs on the subject suggest. Still no luck. The memory
address changes pretty randomly so, obviously, neither of those
workaround would work anyway. I can't block this annoying spew. I
can't fix it programmatically. Then I saw the dataCell outlet when
messing with my app. Now I am puzzled as to why if an outlet is there,
you cannot instantiate the one object it accepts. I tried subclassing
both NSCell, and java.lang.Object. NSCells won't instantiate, and IB
complains that the instance must be of type NSCell when I try to
connect a java.lang.Object. Is there something I am missing? If not,
should I not file both as bugs?
TIA
--
There are only 10 kinds of people in this world... those who understand
binary and those who don't
_______________________________________________
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.