Re: [Pyobjc-dev] Supporting (NSString **) API (and the like)
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-27 13:55:48
|
Wow. Cool. You have obviously mastered Guido's time machine... :-) set_signature_for_selector("NSWorkspace", "getInfoForFile:application:type:", "c16@4:8@12o^@16o^@20") There is still the matter of the other byref method in NSWorkspace -- it takes three byref BOOL's in its arguments. For some reason, I can't run the byref generator script. [bumbox:~/bbum-developer/sourceforge/pyobjc] bbum% python Scripts/extract_byref_signatures.py /System/Library/Frameworks/AppKit.framework /tmp/k Traceback (most recent call last): File "Scripts/extract_byref_signatures.py", line 50, in ? classes = load_bundle(sys.argv[1]) File "Scripts/extract_byref_signatures.py", line 46, in load_bundle classes = [ cls TypeError: lookUpClass() takes exactly 1 argument (0 given) BTW: don't BOOLs have an identifier other than 'c' in 10.2?? b.bum On Wednesday, November 27, 2002, at 01:43 AM, Ronald Oussoren wrote: > Sorry for the late reply, I didn't have e-mail connectivity yesterday. > > There is no need to add (Objective-)C code for this method, or any > method that has pass-by-reference type arguments. I've just checked in > a missing definition that allows you to just call > NSWorkspace.getInfoForFile_application_type_(fname). > > I'll work on some documentation for this feature. |