• 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
Re: NSPropertyListSerialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPropertyListSerialization


  • Subject: Re: NSPropertyListSerialization
  • From: Seejo Pylappan <email@hidden>
  • Date: Wed, 14 May 2003 15:24:56 -0400

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.propertyListFr o
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.

  • Follow-Ups:
    • Re: NSPropertyListSerialization
      • From: Kazutaka KAMIYA <email@hidden>
References: 
 >Re: NSPropertyListSerialization (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Re: NSPropertyListSerialization
  • Next by Date: (errata): NSDates, NSTimestamps and the Java-bridge
  • Previous by thread: Re: NSPropertyListSerialization
  • Next by thread: Re: NSPropertyListSerialization
  • Index(es):
    • Date
    • Thread