Re: [Pyobjc-dev] Another naive question
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-16 23:45:57
|
On Saturday, November 16, 2002, at 06:39 PM, Just van Rossum wrote: > What is the real difference between: > >>>> from AppKit import NSApplication > > and > >>>> from objc import * >>>> NSApplication = lookup_class("NSApplication") > > ? (I noticed they're one and the same object.) The second gives access to the class directly without doing any of the other convenience style stuff found in the AppKit module (informal protocol declarations, etc.). Unfortunately, from AppKit import NSApplication causes the AppKit module to effectively visit every class in the runtime as a part of initialization -- and this is quite expensive. b.bum |