• 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: IB 3x plug-in: How to add custom control which is NSMatrix with custom controls inside?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB 3x plug-in: How to add custom control which is NSMatrix with custom controls inside?


  • Subject: Re: IB 3x plug-in: How to add custom control which is NSMatrix with custom controls inside?
  • From: Laurent Daudelin <email@hidden>
  • Date: Tue, 10 May 2011 12:08:26 -0400

Open the view that contains the matrix in IB. Then, open the matrix. The first cell should be called "Prototype Button Cell (Radio)" or something like that. Select that prototype cell. Select "Tools -> Identity Inspector".  The class identity lets you select which class this cell should be.

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
Logiciels Nemesys Software						email@hidden

On May 10, 2011, at 03:41, Vyacheslav Karamov wrote:

> But the question is how to do it in IB.
>
> 07-May-11 01:50, Lee Ann Rucker пишет:
>> On May 6, 2011, at 8:34 AM, Vyacheslav Karamov wrote:
>>
>>> Hi All!
>>>
>>> I have to support rather old project, so I had to rewrite IB 2x palette in order to open project's NIBs.
>>>
>>> In old IB 2x pallete code several instances of NSMatrix with custom controls are created:
>>>
>>>
>>> I tried to embed several Library Object Templates (with custom controls inside) into NSMatrix but I couldn't.
>>>
>>> How to create such matrices in IB 3x plug-in?
>> NSMatrix can only contain cells.  You're putting CLButtonCells in when you create it in code; you have to do the same thing in IB.
>>
>> Once you've created the matrix you can edit its Prototype Cell to use your custom class.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Why NSClassFromString(@"CADisplayLink")?
  • Next by Date: Re: Why NSClassFromString(@"CADisplayLink")?
  • Previous by thread: Re: Why NSClassFromString(@"CADisplayLink")?
  • Next by thread: Call NSView's -drawRect method manually
  • Index(es):
    • Date
    • Thread