• 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
Using NSCell in a custom view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSCell in a custom view?


  • Subject: Using NSCell in a custom view?
  • From: Keith Blount <email@hidden>
  • Date: Tue, 19 Apr 2005 15:59:42 -0700 (PDT)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

Hello,

I know this is the sort of question that gets asked
often, and yet I have searched the Cocoabuilder
archives,  cocoadev, read the NSCell articles on
stepwise, the docs on NSCell and NSControl (class
descriptions and "Controls and Cells") and can still
not find what I am looking for.

I have a custom view in which I want to click to
create text which can be placed arbitrarily. (This is
actually a margin next to a text view which stores any
number of notes that are aligned with the text.)
Having tried  various approaches, I am now trying to
implement this using NSCells.

The problem is, I can find nothing that gives a really
good overview of how to create a custom view that
allows the user to create and edit cells. As a test, I
have tried creating an NSView subclass that draws a
single text cell using drawWithFrame:inView: and
monitors mouseDown:, calling editWithFrame: when there
is a mouseDown event. I can edit text, but I get a
number of drawing issues (if I select text and hit
enter, I just get a blank square).

Are there any good tutorials out there or does anybody
have any experience of doing this that they would be
willing to share? Essentially all I need to know is
how to create, monitor, move and edit a text cell
within a custom view. I know this should be really
simple, but I have found the docs really vague on this
issue.

Many thanks in advance for any help,
Keith

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
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: Unique Category Names?
  • Next by Date: Re: Unique Category Names?
  • Previous by thread: available printer page sizes
  • Next by thread: RE: Using NSCell in a custom view?
  • Index(es):
    • Date
    • Thread