• 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
changing NSMatrix cells attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

changing NSMatrix cells attributes


  • Subject: changing NSMatrix cells attributes
  • From: Heri <email@hidden>
  • Date: Tue, 29 Mar 2005 18:41:37 -0500

hi everyone

I really love the adress book GUI, so i am trying to do the same thing with an NSMatrix.

I'd like to change each cell's height when the user inserts his text, ie I want to add a new line whenever the string is too large.
I have one controller which is setup as the delegate in awakeFromNib and I inserted the textDidChange, textDidEndEditing ....methods. none of them is called. Anyway, these methods are "strangely" not listed as delegate methods but normal methods in the docs ? There is no delegate methods for an NStextFieldCell so I don't know what to do now. Should i delete the nsmatrix and use nsTextFields ?

One other feature i like in adress book is the autoComplete feature in edit mode, ie the nstextfield behaves like a nsComboBox. In edit mode, a contextmenu pops up which shows a selection of choices. (note: this would require the textShouldBeginEditing delegate method to work also).
I usually use this code to show a menu when the user cliks a button (sender here) :
[NSMenu popUpContextMenu:myMenu withEvent:[NSApp currentEvent] forView:sender];
But with a nsmatrix, what parameter do i use for forView ? a blank hidden CustomView located under the nsTextFieldCell?

Thanks a lot for you input.

Heri
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSButtonCell Ignores Button Type
  • Next by Date: NSFileHandle question.
  • Previous by thread: Re: Overlapping NSMovieViews step on each other
  • Next by thread: NSFileHandle question.
  • Index(es):
    • Date
    • Thread