On Feb 5, 2009, at 10:53 AM, Michael Winterstein wrote:
Hi all,
Is there a particular framework that's required in order to use
'Pointer.new_with_type'?
I'm using the trunk (build 809) and it's apparently not available in
either my Xcode project or in macirb.
Is there an alternative method for working with pointers?
My specific case is that I want to call the C function mkstemp.
Is this what I should be doing? :
@tmpfInfo += "/"+"resynch.fileinfo.XXXXXX"
tmptr = Pointer.new_with_type('*')
tmptr.assign(@tmpfInfo)
fd_tmpInfo = mkstemp(tmptr)
tmpInfoFileHandle = NSFileHandle.initWithFileDescriptor(@fd_tmpInfo)
Michael_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Scratch some of that ... I didn't have the right file and now I do
have Pointer.new_with_type.
But I'm still wondering what's the correct approach. This code still
gives me "undefined method" errors on mkstemp.
Michael
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel