New topic: 

Changes in initiation between Carbon and Cocoa

<http://forums.realsoftware.com/viewtopic.php?t=46125>

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        HardyMachia          Post subject: Changes in initiation between 
Carbon and CocoaPosted: Mon Dec 03, 2012 12:58 pm                         
Joined: Mon Dec 11, 2006 12:25 pm
Posts: 46                App works in Carbon. I switch to Cocoa it has 
NilObjectException.

The issue is I have ContainerControl in my MainWindow that has a 
ContainerControl property in it. The property is sent an Open in Carbon, but it 
doesn't get sent the Open in Cocoa (or it gets sent it later than it was 
getting sent in Carbon) so it isn't being initialized in time.      
_________________
http://www.catamount.com 
PocketMoney for iOS, OSX, Linux, Windows, and Android  
                             Top                HardyMachia          Post 
subject: Re: Changes in initiation between Carbon and CocoaPosted: Mon Dec 03, 
2012 2:04 pm                         
Joined: Mon Dec 11, 2006 12:25 pm
Posts: 46                I have a timer object in my container that is getting 
fired before the Open which is causing the issue since it's expecting the the 
Open to have already happened.      
_________________
http://www.catamount.com 
PocketMoney for iOS, OSX, Linux, Windows, and Android  
                             Top                HardyMachia          Post 
subject: Re: Changes in initiation between Carbon and CocoaPosted: Mon Dec 03, 
2012 2:18 pm                         
Joined: Mon Dec 11, 2006 12:25 pm
Posts: 46                The core of the issue is that MainWindow's Open is not 
being called. The constructor is getting called and I'm calling Super, but Open 
is not getting called for MainWindow in Cocoa, but does get called in Carbon.

I create the mainwindow and show it, but if I put break points on both lines it 
only stops on the first line and never the second line.

Dim main As New MainWindow
main.Show
      
_________________
http://www.catamount.com 
PocketMoney for iOS, OSX, Linux, Windows, and Android  
                             Top                HardyMachia          Post 
subject: Re: Changes in initiation between Carbon and CocoaPosted: Mon Dec 03, 
2012 3:35 pm                         
Joined: Mon Dec 11, 2006 12:25 pm
Posts: 46                This seems to be a bug in 2012r1.2 that has been fixed 
in future release so I'll wait.      
_________________
http://www.catamount.com 
PocketMoney for iOS, OSX, Linux, Windows, and Android  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to