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

Group
 
 

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

Submitter:  Sergii Stoian <stoyan>
Submitted:  Sun 03 Jul 2005 10:30:46 PM UTC
   
 
Category:  Application Severity:  4 - Important
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-07-07 gcasa StatusNone Invalid
    Assigned toNone gcasa
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-aa77.
Corresponding source code