On Sunday, February 2, 2003, at 01:19 PM, Sherm Pendley wrote:
What you want is this:my $dict = NSDictionary->alloc->init;
Interesting, so there is already a global instance of NSDictionary?
$dict->writeToFile_Atomically("/tmp/foo", 1);
I forgot to try with underscores :)
I've updated the "Collections" page on the site to illustrate these methods. For some reason that page was MIA when I looked; I wrote it months ago, and I would have sworn that I uploaded it. At any rate, it and the MVC page are both there now.
Thanks!
They're intended to provide access to a Perl hash/array, using the NSDictionary/NSArray interface. They're mainly there for ObjC programmers, but if you wanted to use Cocoa methods to work with a Perl hash or array from Perl, I suppose that would work too.What I wanted to do was to get an ObjC object that contained the data in my perl hash without having to manually iterate over the contents of my hash and fill it in.
-Dan