• 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: Command-click table in background app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command-click table in background app


  • Subject: Re: Command-click table in background app
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 31 May 2006 05:19:56 -0700

On May 31, 2006, at 5:00 AM, Bill Cheeseman wrote:

I can't make this work. I've created a subclass of NSScrollView that
overrides -acceptsFirstMouse:, and I've made my subclass the scrollview's
"custom class" using IB. But my subclass's -initWithFrame: and
-acceptsFirstMouse: methods are never called (unless I call the latter
explicitly with an NSLog call on the table view's superview's superview (to
get past the intervening clip view).


Is there some trick to making a table's scrollview use a subclass?

Objects created in Interface Builder are archived, and the designated initializer for NSCoding will be called when the nib is loaded. You need to use -initWithCoder: and (in your Debug build) test for the proper subclass.
--
Shaun Wexler
MacFOH
http://www.macfoh.com


"A person who never made a mistake never tried anything new." - Albert Einstein


_______________________________________________ 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
  • Follow-Ups:
    • Re: Command-click table in background app
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Command-click table in background app (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Command-click table in background app
  • Next by Date: Re: Problem subclassing a NSCell in a NSTableView
  • Previous by thread: Re: Command-click table in background app
  • Next by thread: Re: Command-click table in background app
  • Index(es):
    • Date
    • Thread