Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 24, 2007, 10:26 PM   #1
DavidCar
macrumors 6502a
 
Join Date: Jan 2004
Why can't I initialize my custom class?

In this example I posted earlier:

"My Approach to printing NSTableView"

http://forums.macrumors.com/showthread.php?t=273153

I was never able to properly initialize my custom NSBox class. I used Interface Builder to declare an NSBox to belong to the custom class, and the other methods there are called correctly, but not the init or initWithFrame methods, so I had to use an inelegant way of doing it.

Any thoughts as to what I'm doing wrong?
DavidCar is offline   0 Reply With Quote
Old Jan 24, 2007, 11:50 PM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
Your NSBox subclass may be created via the initWithCoder: method.
kainjow is offline   0 Reply With Quote
Old Jan 25, 2007, 12:24 AM   #3
DavidCar
Thread Starter
macrumors 6502a
 
Join Date: Jan 2004
Quote:
Originally Posted by kainjow View Post
Your NSBox subclass may be created via the initWithCoder: method.
I just tested it, and you're correct. Problem solved.

Thanks for the suggestion.

DC
DavidCar is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Call of Duty 4: Mod server wiped out my Custom Classes & How to Delete Mod Maps Libertine Lush Mac and PC Games 0 May 28, 2010 06:24 AM
Why can't I see my windows network on my mac marklight Mac Applications and Mac App Store 2 Apr 23, 2008 12:30 PM
Why can't I drop my songs onto my iPhone playlist? California iPhone Tips, Help and Troubleshooting 1 Sep 15, 2007 10:22 AM
Why can't I close my MBP and just (only) use my ACD? johnbro23 OS X 11 Oct 28, 2006 11:00 AM
Why oh why, can't I use my computer keyboard to input? Nosh Mac Applications and Mac App Store 2 Jan 17, 2004 11:07 PM


All times are GMT -5. The time now is 12:15 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC