Hai
I am newbie in cocoa pleeas help
I want to change font of NsTextView with current size of text in text
view.I changed the font cant keep the current size.How get the current
size of NsTextView to put in size field of setfont in nstextview.
Itried the given code pleas help wat change i should do to achiev my
aim.
for (tabindex=0;tabindex <[mytabview numberOfRows];tabindex++) {
if ([mytabview isRowSelected:tabindex]) {
myfont =[fontnames objectAtIndex:tabindex];
textfon=[NSFont fontWithName:myfont size:15];
}
}
if (textfon!=nil) {
[mytextviewchar setFont:textfon];
}
With thanks.
Andrea Nall - 27 Sep 2006 01:34 GMT
> Hai
> I am newbie in cocoa pleeas help
[quoted text clipped - 3 lines]
> Itried the given code pleas help wat change i should do to achiev my
> aim.
How about [[aTextField font] pointSize]