• 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
Custom NSBox, init not called from IB/nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom NSBox, init not called from IB/nib


  • Subject: Custom NSBox, init not called from IB/nib
  • From: Jacob Ole Juul Kolding <email@hidden>
  • Date: Sun, 20 Jul 2008 23:31:49 +0200

Hello List

I quite new to Obj-C and Cocoa.

I've implemented a custom NSBox with an overwritten init function like this:

-(id) init {
    self = [super init];
    if (self) {
[self setBorderType:NSNoBorder];
}
    return self;
}

Added a NSBox in IB and seleceted my custom class as the base class for the box, 
but my init function is never called?

Does anyone know what I might be doing wrong?

Jacob Kolding
email@hidden





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Custom NSBox, init not called from IB/nib
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Custom NSBox, init not called from IB/nib
      • From: Kevin Cathey <email@hidden>
  • Prev by Date: Re: Problem compiling first Cocoa app in Xcode 3.1
  • Next by Date: Re: Custom NSBox, init not called from IB/nib
  • Previous by thread: Re: Regarding Iphone - shareholder revolt?
  • Next by thread: Re: Custom NSBox, init not called from IB/nib
  • Index(es):
    • Date
    • Thread