• 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
IB wont instantiate a custom subclass.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IB wont instantiate a custom subclass.


  • Subject: IB wont instantiate a custom subclass.
  • From: jkp <email@hidden>
  • Date: Mon, 7 Nov 2005 11:14:23 +0000

Dear list

I have an NSWindowController subclass called ViewController and I have several more specific subclasses of that. When I add the classes to IB, for some reason it will not, no matter what I do, allow me to instantiate one of these subclasses. Lets give the problem class a name - ItemViewController. After a lot of experimentation I worked out that if i simply change the class' name to something else - say, ItemFooController, IB reenables the instatiate option. This lead me to thing that the problem was corruption in the nib im working on, so I tested the theory by adding the classes to a brand new nib and trying the same thing there. I get exactly the same results - ItemViewController is not allowed, but if i change its name to something else IB has no issues. I had thought that it could have been something wrong in the header for the class, but this is not the case since i also tried completely emptying out the header and just starting with it as though it was a fresh class - again no go. Only changing the name works.

Can anyone shed any light on this extremely annoying behaviour?

PS - I have also used nibtool to make sure that there were no references to some old version of the class hanging around, but this is irrelevant really since my new nib experiment proves it happens in any situation.

Many thanks in advance

Jamie
_______________________________________________
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


  • Prev by Date: Re: progress bar when creating file
  • Next by Date: NSSegmentedControl + Bindings
  • Previous by thread: Re: progress bar when creating file
  • Next by thread: NSSegmentedControl + Bindings
  • Index(es):
    • Date
    • Thread