• 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
not able to set NSTextFiled font
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

not able to set NSTextFiled font


  • Subject: not able to set NSTextFiled font
  • From: "MAnish Billore" <email@hidden>
  • Date: Mon, 25 Aug 2008 20:09:44 +0530

Hi ,

I am creating a  text field and trying set font using following code but
when I run application font size remain unchanged  .

What I am doing wrong here.


                        NSRect brect = NSMakeRect(140, y, 300, 22);

MCTextField *textField = [[MCTextField alloc] initWithFrame:brect ];

[textField setFocusRingType:NSFocusRingTypeNone];

[ textField setBordered:YES];

[textField setFont:[NSFont boldSystemFontOfSize:16]];

thanks

Manish Billore
_______________________________________________

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

  • Follow-Ups:
    • Re: not able to set NSTextFiled font
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: monitoring file system
  • Next by Date: Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
  • Previous by thread: Re: monitoring file system
  • Next by thread: Re: not able to set NSTextFiled font
  • Index(es):
    • Date
    • Thread