Iphone developers now have three months.
What is the problem generally can not be resolved independently.
Want to learn under unix, gcc, gnu.
In-depth understanding of the underlying aspects of things.
Iphone developers think it might be helpful for the future.
Reply:
autorelease memory management issues:
Every time-autorelease is sent to an object, it is added to the inner-most autorelease pool. When the pool is drained, it simply sends-release to all the objects in the pool.
Autorelease pools are simply a convenience that allows you to defer sending-release until "later". That "later" can happen in several places, but the most common in Cocoa GUI apps is at the end of the current run loop cycle.
The run loop cycle is how is it?
Reply:
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init] ;/ / start run loop cycle
int retVal = UIApplicationMain (argc, argv, nil, nil) ;/ / intermediate can be embedded run loop cycle
[Pool release] ;/ / end of the run loop cycle
If you use multiple threads, you can generate some other run loop, generally decided by the system when released.
Reply:
Certainly help your friends.
iphone ios platform is also a unix kernel, but nothing may be different in some places.
You can think: unix kernel core is approximately equal to mac, mac iphone streamlining of core
.
unix programming ideas very good book, unmissable.
In addition, the proposed loading linux, ubuntu good, nothing more than play the command line, scripting, and more to write C code, it will slowly understand.
Reply:
# Include
# Include
int main ()
{
initscr ();
clear ();
addstr ("Hello, World!");
move (1,0);
refresh ();
getch ();
endwin ();
}
This program links the error.
But gcc seem to find.
Undefined symbols for architecture x86_64:
"_stdscr", Referenced from:
_main in main.o
"_initscr", Referenced from:
_main in main.o
"_wclear", Referenced from:
No comments:
Post a Comment