Re: [Pyobjc-dev] Constant not found
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-02-28 20:23:38
|
On 23 Feb, 2010, at 12:30, Tobias Weber wrote: > Hi, > using the Python and PyObjC that came with Snow Leopard, this works fine: > > from Foundation import * > > NSURL.URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( > mydata, (1 << 8), None, None, None) > > But I'd rather use the named constant NSURLBookmarkResolutionWithoutUI, only I'm getting NameError. > > I found a suggestion to import * from AppKit, but that doesn't help: > > http://sourceforge.net/mailarchive/message.php?msg_id=d2jvrn%24d9f%241%40sea.gmane.org 'from Foundation import *' should help, but does indeed not do so :-( This is fixed in the repository, but that's not usable at the moment due to a port-in-progress to python 3.x Ronald > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |