| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
They're bound "as needed" during runtime, not at applaunch, so as users pop open new windows (for instance) they are bound at that moment. Once bound, it's smooth sailing, but the user does have to wait for binding to take place that very first time that object is used/referenced.
I just created a test app with two nswindows (programatically) created and each has 50 nstextfields. win1 and it's 50 textfields are all typed as "id" while WIN2 and it's 50 textfields are statically typed.
after app launch i click the button, whose action method detaches the 2 threads like so:
- (IBAction)myAction:(id)sender {
[NSThread detachNewThreadSelector:@selector(winONE:) toTarget:self withObject:nil];
[NSThread detachNewThreadSelector:@selector(winTWO:) toTarget:self withObject:nil];
}
Notice that I give the 'id' window a head start. Even with the head start, the 'id' window is drawn **long** after the statically typed window and it's statically typed textfields are completely drawn to the screen.
| References: | |
| >Re: What is the purpose of static typing? (From: Philip George <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.