Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebKit & MiniBrowser: Document Tail Wagging the Dog



on 05/06/29 22:15, Seth Willits at email@hidden wrote:

> On Jun 29, 2005, at 9:13 PM, Jerry Krinock wrote:
> 
>> I thought it would be cool to incorporate Apple's "MiniBrowser"
>> (/Developer/Examples/WebKit) into my app.
>> 
>> So, I did it.  It works, just like Apple's example.  When my app
>> launches,
>> apparently through the magic of AppKit or WebKit, the "mini
>> browser" window
>> loads and shows.  But I don't want it to load until later!
> 
> Turn off the "Visible at Launch Time" property for the window in IB.

Thank you, Seth, but I'd already done that.  That box is UNchecked but the
window still loads anyhow.

_I_ do not execute any of the NSDocument code; like I said, it looks like
all callbacks.   As far as I can see, the only clue it gets to that nib is
its mention in the CFBundleDocumentTypes dictionary in Info.plist.  Is there
something in here which causes it to load?

    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeExtensions</key>
            <array>
                <string>html</string>
                <string>htm</string>
            </array>
            <key>CFBundleTypeMIMETypes</key>
            <array>
                <string>text/html</string>
            </array>
            <key>CFBundleTypeName</key>
            <string>HTML Document</string>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>LSTypeIsPackage</key>
            <false/>
            <key>NSDocumentClass</key>
            <string>BrowserDoc</string>
        </dict>
    </array>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: WebKit & MiniBrowser: Document Tail Wagging the Dog (From: Seth Willits <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.