Re: NSPropertyListSerialization
Re: NSPropertyListSerialization
- Subject: Re: NSPropertyListSerialization
- From: Kazutaka KAMIYA <email@hidden>
- Date: Thu, 15 May 2003 18:17:47 +0900
Hello,
Thanks for advising me!
I tried to test adding NSAutoreleasePool, But It could not do it.
int myPool = com.apple.cocoa.foundation.NSAutoreleasePool.push();
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException
[java.lang.UnsatisfiedLinkError] push
[2003-05-15 17:56:38 JST] <WorkerThread1>
com.webobjects.foundation.NSForwardException for
java.lang.UnsatisfiedLinkError: push
at com.apple.cocoa.foundation.NSAutoreleasePool.push(Native Method)
at Main.reading(Main.java:45)
at Main.getPlist(Main.java:80)
at java.lang.reflect.Method.invoke(Native Method)
So, I think, I should better to make original parser program.
Thanks,Kazutaka.
On 5 15, 2003, at 04:24 AM, Seejo Pylappan wrote:
Actually you need to init and release the pool like this:
int myPool = NSAutoreleasePool.push();
// Your code segment
NSAutoreleasePool.pop(myPool);
-Seejo
On Wednesday, May 14, 2003, at 03:01 PM, Ricardo Strausz wrote:
ObjC releases its objects via AutoreleasePools in order to do not leak
memory...
I am not sure where does NSAutoreleasePool is defined in the side of
Java (if it is) but mey be you can find it in com.apple.cocoa.appkit;
if so, you may nead to create one in order to use cocoa.foundation...
some thing like:
NSAutoreleasePool myReleasePool = new ...
NSPropertyListSerialization mySerializer = new ...
/*use it*/
myReleasePool.release();
I am just guessing... I usually use Java objects "inside" ObjeC ones;
not without truble, but it works.
On miC)rcoles, mayo 14, 2003, at 13:32 America/Mexico_City, Kazutaka
KAMIYA wrote:
Hello,
Ricardo, Thanks for advising me.
I tried to test program using
com.apple.cocoa.foundation.NSPropertyListSerialization.
"com.apple.cocoa.foundation.NSPropertyListSerialization.propertyListF
ro
mXMLData(aData);"
But,It rose below exception. Maybe, com.apple.cocoa.foundation can
use
only Cocoa Application.
2003-05-15 03:20:54.162 java[2719] *** _NSAutoreleaseNoPool(): Object
0x1ef9aa0 of class NSConcreteData autoreleased with no pool in place
-
just leaking
Thanks for anyway.
Kazutaka.
On f(ff%, 5 15, 2003, at 02:06 AM, Ricardo Strausz wrote:
If it is in com.apple.cocoa.foundation.NSPropertyListSerialization,
it is writen in Java;
therefore I think you may use it, just import the library.
On lunes, mayo 12, 2003, at 21:52 America/Mexico_City, Kazutaka
KAMIYA wrote:
Hello,
I want to write Property List by XML in my WOApp .
So I want to use XMLDataFromPropertyList method in
NSPropertyListSerialization Class.
But, that metod is nothing in
com.webobjects.foundation.NSPropertyListSerialization.
There is in com.apple.cocoa.foundation.NSPropertyListSerialization.
It is for Cocoa Java.
In WOApp, that method can not use?
Or Are there any ideas?
Thanks, Kazutaka.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
Dino
http://homepage.mac.com/strausz
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
Dino
http://homepage.mac.com/strausz
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.