bugGNUstep - Bugs: bug #13618, GORM doesn't react to changing...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #13618: GORM doesn't react to changing control's class to custom

Submitted by:  Sergii Stoian <stoyan>
Submitted on:  Sun 03 Jul 2005 10:30:46 PM UTC  
 
Category: ApplicationSeverity: 4 - Important
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: Gregory John Casamento <gcasa>
Open/Closed: Closed

Thu 07 Jul 2005 09:36:03 PM UTC, comment #1:

Serg,

initWithFrame isn't supposed to be called in custom subclasses of controls. :) Please see the AppKit API documentation for this:

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/NSControl.html#//apple_ref/doc/uid/20000073-BAJDBBAF

You're class is being instantiated by calling initWithCoder:. Additionally you should put any final initialization in the awakeFromNib method.

Thanks, GJC

Gregory John Casamento <gcasa>
Project AdministratorIn charge of this item.
Sun 03 Jul 2005 10:30:46 PM UTC, original submission:

I have custom class PCButton which is descendant of NSButton. I've drag button from pallete to my window and then change class of button to PCButton. Button remains NSButton based instead of PCButton (initWithFrame doesn't called). If I drag "Custom View" control and set class to PCButton everything works correct. Is it correct behaviour or I've missed something?

Sergii Stoian <stoyan>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 07 Jul 2005 09:36:03 PM UTCgcasaStatusNone=>Invalid
  Assigned toNone=>gcasa
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1