• 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: problem with NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with NSScrollView


  • Subject: Re: problem with NSScrollView
  • From: John Randolph <email@hidden>
  • Date: Mon, 28 Jul 2003 12:35:08 -0700

On Monday, July 28, 2003, at 11:46 AM, email@hidden wrote:

Hi all, how can i insert my own component (subclassing NSTextView) in aNSScrollObject ?? I need scroll support in my own text component

Two ways:

1) Get a CustomView object from the palette, select the "custom class" inspector (command-5, I believe), set its class to your text view subclass, and group it in a scroll view (Layout->Make Subviews Of->Scroll View).

2) Grab a normal textView in the scrollview from the 'Cocoa-text' palette, double click inside the scrollview to select the text view, and set it to a custom class.

In either case, you'll need to make IB aware of your textview subclass, either by parsing its header, or manually creating a record for it in the Classes tab.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >problem with NSScrollView (From: email@hidden)

  • Prev by Date: Re: Memory Management
  • Next by Date: Re: Cells within cells part 2
  • Previous by thread: problem with NSScrollView
  • Next by thread: Re: problem with NSScrollView
  • Index(es):
    • Date
    • Thread