• 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: Custom Cells in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Cells in IB


  • Subject: Re: Custom Cells in IB
  • From: "John C. Randolph" <email@hidden>
  • Date: Sat, 14 Dec 2002 15:22:04 -0800

On Friday, December 13, 2002, at 11:09 PM, Vince DeMarco wrote:

On Friday, December 13, 2002, at 09:11 PM, John C. Randolph wrote:

On Friday, December 13, 2002, at 08:26 PM, Andrew wrote:

Hi,

I want to use IB to create NSMatrices of my subclass of NSCell. Is this
possible?

I want to use IB rather than doing it programatically because I want to be
able to easily change layouts etc.

This probably is doable, if you write an IB palette that includes the code for your cell class. Your cells will have to be able to archive themselves (implement -encodeWithCoder: and -initWithCoder:). On your palette, you can put a matrix whose prototype cell and cell class are your custom subclass.

Not really, on your palette you put a NSControl subclass that contains your cell. Just like NSButton, NSSlider etc work.

Oh, cool! It's simpler than I thought. So, does it need to be an NSControl, or does it just need to respond to -cell?

-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.

  • Follow-Ups:
    • Re: Custom Cells in IB
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: Custom Cells in IB (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Re: Methods with Variable Numbers of Arguments
  • Next by Date: Re: Custom Cells in IB
  • Previous by thread: Re: Custom Cells in IB
  • Next by thread: Re: Custom Cells in IB
  • Index(es):
    • Date
    • Thread