• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: display a text field?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display a text field?


  • Subject: Re: display a text field?
  • From: Bob Ueland <email@hidden>
  • Date: Mon, 5 Nov 2007 07:57:58 -0800 (PST)

Thanks Mike,

now it works

----- Original Message ----
From: Mike Abdullah <email@hidden>
To: Bob Ueland <email@hidden>
Cc: Apple Cocoa-Dev Mailing List <email@hidden>
Sent: Monday, November 5, 2007 3:47:51 PM
Subject: Re: display a text field?


Well all you've done is create a text field. It must be actually
placed in the window to appear there. Try adding a second line of code

along these lines:

[[myWindow contentView] addSubview:myTextField];

Mike.

On 5 Nov 2007, at 14:40, Bob Ueland wrote:

> I am trying to create a text field programmatically and to display
> it in the window. Here is the code
>
> -(void)awakeFromNib;
> {
>    NSTextField *myTextField=[[NSTextField alloc]
> initWithFrame:NSMakeRect(100.0, 100.0, 80.0, 25.0)];
> }
>
> The code runs OK but no text field is shown in the window. What must

> I do to get it to display in the window?
>
> Thanks Bob
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
>
> 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






__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________

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

  • Prev by Date: Re: NSCollectionViewItem & Its View
  • Next by Date: Re: Pages - save document
  • Previous by thread: Re: display a text field?
  • Next by thread: Pages - save document
  • Index(es):
    • Date
    • Thread