Re: How to specify the superview in the Interface Builder?

2010-06-12 Thread Henry McGilton

On Jun 11, 2010, at 8:32 PM, ico wrote:

> On Sat, Jun 5, 2010 at 1:19 AM, jeremy  wrote:
> 
>> Would you provide some additional information:
>> 
>> 1) Is the IB designed custom view in MainWindow.xib or is it in its own nib
>> file?
>> 
>> 2) Did you create a custom view controller class to manage the screen full
>> of content shown in the custom view?
>> 
>> 
>> On Jun 4, 2010, at 12:53 PM, ico wrote:
>> 
>>> I have created a custom view in the Interface Builder, how can I specify
>> the
>>> superview for this custom view? For example,
>>> I want to make its superview be UIWindow rather than another custom view.
>> 
>> 
> 1) Yes, it is IB designed custom view, actually I drag that custom view from
> IB library to my main screen, it is MainWindow.xib.
> 2) No, I didn't create a custom view controller class to manage the screen.
> 
> I open the nib file(only one in my project), and design my UI. So I have
> only one default UIWindow. What I want to know is,
> when I drag a custom view(call it view A) to my application screen, suppose
> it has to be put on top of another custom view(call it view B). Is there any
> way I can specify the superview of view A to be the default UIWindow rather
> than view B.

Why can't you simply drag a UIView out of the catalogue and drop it onto the
Window in MainWindow.xib?

Cheers,
. . . . . . . .Henry

___

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


Re: How to specify the superview in the Interface Builder?

2010-06-11 Thread ico
On Sat, Jun 5, 2010 at 1:19 AM, jeremy  wrote:

> Would you provide some additional information:
>
> 1) Is the IB designed custom view in MainWindow.xib or is it in its own nib
> file?
>
> 2) Did you create a custom view controller class to manage the screen full
> of content shown in the custom view?
>
>
> On Jun 4, 2010, at 12:53 PM, ico wrote:
>
> > I have created a custom view in the Interface Builder, how can I specify
> the
> > superview for this custom view? For example,
> > I want to make its superview be UIWindow rather than another custom view.
>
>
1) Yes, it is IB designed custom view, actually I drag that custom view from
IB library to my main screen, it is MainWindow.xib.
2) No, I didn't create a custom view controller class to manage the screen.

I open the nib file(only one in my project), and design my UI. So I have
only one default UIWindow. What I want to know is,
when I drag a custom view(call it view A) to my application screen, suppose
it has to be put on top of another custom view(call it view B). Is there any
way I can specify the superview of view A to be the default UIWindow rather
than view B.

-- 
==
Life isn't about finding yourself.
Life is about creating yourself.
___

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


Re: How to specify the superview in the Interface Builder?

2010-06-04 Thread glenn andreas

On Jun 4, 2010, at 11:53 AM, ico wrote:

> Hi all,
> 
> I have created a custom view in the Interface Builder, how can I specify the
> superview for this custom view? For example,
> I want to make its superview be UIWindow rather than another custom view.

Then drag a UIWindow from the library and put your view inside that.

Note, however, that you probably don't want to be doing that in general (except 
for the main nib).  From the UIWindow documentation:

> Although iPhone OS supports layering windows on top of each other, your 
> application should never create more than one window. The system itself uses 
> additional windows to display the system status bar, important alerts, and 
> other types of messages on top of your application’s windows. If you want to 
> display alerts on top of your content, use the alert views provided by UIKit 
> rather than creating additional windows.


So if your design requires a view living in anything other than the main 
window, you should probably redesign it (or be prepared for lots of debugging 
and testing, since the way multiple UIWindows work varies between OS release, 
and possibility of rejection from the AppStore when you submit it)


Glenn Andreas  gandr...@gandreas.com 
The most merciful thing in the world ... is the inability of the human mind to 
correlate all its contents - HPL

___

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


Re: How to specify the superview in the Interface Builder?

2010-06-04 Thread jeremy
Would you provide some additional information:

1) Is the IB designed custom view in MainWindow.xib or is it in its own nib 
file?

2) Did you create a custom view controller class to manage the screen full of 
content shown in the custom view?


On Jun 4, 2010, at 12:53 PM, ico wrote:

> I have created a custom view in the Interface Builder, how can I specify the
> superview for this custom view? For example,
> I want to make its superview be UIWindow rather than another custom view.

___

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


How to specify the superview in the Interface Builder?

2010-06-04 Thread ico
Hi all,

I have created a custom view in the Interface Builder, how can I specify the
superview for this custom view? For example,
I want to make its superview be UIWindow rather than another custom view.

Thanks.

ico
==
Life isn't about finding yourself.
Life is about creating yourself.
___

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