• 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
NSMatrix programatic creation question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMatrix programatic creation question


  • Subject: NSMatrix programatic creation question
  • From: terry <email@hidden>
  • Date: Fri, 9 Aug 2002 20:46:33 -0600

I'm attempting to figure out how to create an NSMatrix programatically.

I think I want to use the following message to create it:

- initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:

This is what I have, but it must be incorrect, because I get errors:

startMatrix = [NSMatrix initWithFrame: aFrame mode: NSTrackModeMatrix cellClass: [NSTextField class] numberOfRows: 2 numberOfColumns: 2];


startMatrix is an NSMatrix *

aFrame is a Frame ;)

Here are the runtime errors I get:

2002-08-09 20:45:08.218 CokeAIMM[1240] *** +[NSMatrix initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:]: selector not recognized
2002-08-09 20:45:08.219 CokeAIMM[1240] *** +[NSMatrix initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:]: selector not recognized


Could someone possibly help shed some light on what I'm doing wrong?

Thanks,

Back to the documentation...

- Terry
_______________________________________________
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: NSMatrix programatic creation question
      • From: Sherm Pendley <email@hidden>
    • Re: NSMatrix programatic creation question
      • From: Julien Jalon <email@hidden>
  • Prev by Date: Re: Text Storage
  • Next by Date: Re: NSMatrix programatic creation question
  • Previous by thread: Re: Debugging a service.
  • Next by thread: Re: NSMatrix programatic creation question
  • Index(es):
    • Date
    • Thread