Hi Nick... On Sun, Mar 28, 2010 at 12:49 PM, Nick Zitzmann <n...@chronosnet.com> wrote: >> Is it possible I could create it in a xib file and keep it invisible, >> and handle closing programmatically so it's not a waste of memory? > > Yes. >
Okay... how? I can uncheck "visible at launch," then how do I control the visibility and memory for that window via code? >> How >> would I go about this, or is there an easier way? > > Subclassing NSView/WindowController, giving it a nib with a WebView, and > doing whatever you need to do in that controller subclass would work. Or you > could just create the WebView using -initWithFrame:. Note that I've found > that WebViews that are not placed inside windows won't actually render > anything, so you'll have to create a dummy window as well, though you won't > need to open it. > > Nick Zitzmann > <http://www.chronosnet.com/> > I looked at initWithFrame, which looked to be my only way to open a webview completely programmatically, but then I'm not sure what the NSRect should be. I'll be printing so is there an NSRect I can grab from NSSharedPrintInfo somewhere?? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com