• 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
initWithCoder but I do not have nib file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

initWithCoder but I do not have nib file


  • Subject: initWithCoder but I do not have nib file
  • From: Agha Khan <email@hidden>
  • Date: Sat, 15 Aug 2009 03:07:22 -0700

Hi:
I was looking a blog about customButton


http://supergravelynbros.com/?p=871


The author explained that initializing with - (id)initWithCoder:(NSCoder *)coder

I implemented something like this
self.helpButton = [CustomButton initWithCoder:UIButtonTypeRoundedRect];
which complies OK, but get exception at this point.

I know the reason I do not have a nib file, but I believe I don't need it.

According to author
The initWithCoder: method is what will be called when the game reads the button in from the nib files.


But I do not have any nib file in my project. What can we do in such situation?

Best regards
-Agha
_______________________________________________

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


  • Follow-Ups:
    • Re: initWithCoder but I do not have nib file
      • From: Chase Meadors <email@hidden>
  • Prev by Date: Re: CTLineCreateWithAttributedString ignoring font size
  • Next by Date: Re: Aqua animations drawing from separate thread
  • Previous by thread: Re: Problem with Float type variable
  • Next by thread: Re: initWithCoder but I do not have nib file
  • Index(es):
    • Date
    • Thread