Re: Is this a bug of InterfaceBuilder?
Re: Is this a bug of InterfaceBuilder?
- Subject: Re: Is this a bug of InterfaceBuilder?
- From: "Jim Thomason" <email@hidden>
- Date: Sun, 19 Aug 2007 10:14:23 -0500
I'll be. I was also unable to connect to a WebView in the manner
described - IB would only let me connect to the given tab's view. So
it does look like an IB problem. File a bug report.
Here's two workarounds:
1) Drag an ordinary NSView into your tab, and then using the custom
class inspector change it to be a WebView. You can then wire this up,
but you lose the custom attributes inspector for the webview.
2) Drag the webview elsewhere into the window so it's not in the tab.
Drag your connection from your controller to the webview, then drag
the web view into the tab view. When you start to drag into the tab
view, click and hold on the webview first. It will "pop up" and the
cursor will switch to the copy cursor. Drag it into the tab view, and
you should see it retarget into there. Drop it and you're inside. Just
to be sure, confirm afterwards that your connection is still there,
but don't disconnect it, since you'd have to repeat the procedure if
you do. This will keep your webview attributes inspector.
-JIm.....
On 8/19/07, Allen Dang <email@hidden> wrote:
> I met a strange problem in InterfaceBuilder.
>
> Following is what I've done:
> 1. Drag a NSTabView to a Window.
> 2. Drag a WebView into NSTabView.
> 3. Create a controller with one Outlet named "webView" with type
> WebView.
> 4. Instance the controller.
> 5. Ctrl + Left Click from controller's instance to WebView.
>
> Then I met the problem -- I never can target WebView inside a NSTabView.
> Each time when I try to do that, the target always is NSView instead
> of WebView.
>
> What should I do?
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden