2010-02-28

mac dev news

10.2.1: addn/dev.mac

2.2:

news.addn/dev.mac#iphone/acceptance science:
. I read the following site to remind me of
things to watch out for when submitting:
Avoiding iPhone App Rejection From Apple
http://www.mobileorchard.com/avoiding-iphone-app-rejection-from-apple/
And I read to remind me that many developers are frustrated with apple:
http://apprejections.com/

2.7:

bk.addn/dev.mac/Cocoa Programming Developer's Handbook(free chapter):
http://www.informit.com/articles/article.aspx?p=1436920
David Chisnall goes through the most important aspects
of the OpenStep Foundation framework.,
which covers the core functionality of the Cocoa development environment.

2.9:

proj.addn/dev.mac/obj'c/text errata:
. must be for the old version of the book I have;
all these corrections have been made in my edition .

2.10:

proj.addn/dev.c/vc++ code editor: has code folding (yum) .


2.12:

web.addn/dev/GNUwin32

http://www.askstudent.com/tips/how-to-use-unixlinux-commands-at-the-windows-command-prompt/
"(
While Cygwin would be an obvious choice for
many Unix/Linux power users,
there is an excellent and a much simpler
alternative to using Cygwin
is using GNUWin32's coreutils .
http://sourceforge.net/projects/gnuwin32/files/coreutils/
)
. looking into that huge gnu collection
I notice he has indeed vastly simplified things
by getting just one of among dozens of packages .
. getting the entire gnuwin32 collection
would be as complicated as cygwin
and for that case, they use cygwin's approach:
an installer app that gets the latest version of each package .
. reviewing the code,
I see it's nicely commented,
but some can seem overly complicated by the use of
conditional compilation directives .


news.addn/dev.mac/pylons:
. Chapter 1: Introducing Pylons — Pylons Book v1.1 documentation
http://pylonsbook.com/en/1.1/introducing-pylons.html#the-pylons-way

2.13:

sci.addn/dev.mac/accessability example:
. their example comes as a before&after version of the same project,
and I'm using winmerge to see the diff's side-by-side .




2.15: web.addn/dev.mac/cocoadesignpatterns.com:

Cocoa Design Patterns By Erik Buck and Don Yacktman
http://www.cocoadesignpatterns.com/

Sample Code
http://www.cocoadesignpatterns.com/sample-code/
Voices that Matter
Materials from Erik's talk at the Voices that Matter - iPhone Developers Conference
CocoaDesignPatternsSampleCode.zip (1.3M)
Sample Code for Cocoa Design Patterns.

http://www.cocoadesignpatterns.com/errata/
CocoaDesignPatternsSampleCode.zip
http://www.cocoadesignpatterns.com/sample-code/CocoaDesignPatternsSampleCode.zip

Sample Code > Voices that Matter
http://www.cocoadesignpatterns.com/sample-code/voices-that-matter/
Cocoa Design Patterns.pdf (2.7M)
GLGravityToyPlane.zip (6M)
OpenGL ES for iPhone Games.pdf (1.6M)
Transparis.zip (239K)
Transparis3D.zip (243K)
Transparis3DCoreData.zip (289K)

2.16:
http://www.cocoadesignpatterns.com
http://en.wikipedia.org/wiki/Design_pattern_(computer_science)
http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html
http://c2.com/cgi/wiki?DesignPatternsBook
http://www.asp.net/mvc/



2.17: web.addn/dev.mac/cocoa patterns ref's to stepwise:


see cocoa page 111 for todo.web.
stepwise.com/Articles/Technical/memorymanagement.html
http://web.archive.org/web/*hh_/graphics.stepwise.com/Articles/Technical/
http://web.archive.org/web/20030224042213/http://graphics.stepwise.com/Articles/Technical/
http://web.archive.org/web/20021227023849/http://graphics.stepwise.com/Articles/Technical/

2.19:

http://74.125.155.132/search?q=cache:XQeBGtnj7skJ:www.omnigroup.com/mailman/archive/macosx-dev/1999-October.txt+stepwise.com/Articles/Technical/memorymanagement.html&cd=9&hl=en&ct=clnk&gl=us&client=mozilla
I just read the new article on Stepwise about Cocoa
memory management by Manu Iyengar

(which is very well done, by the way). In it, he presents the
following code as a useful idiom for writing set accessor methods.

> - (void) setTheory: (Theory *)newTheory
> {
> Theory *oldTheory = nil;
>
> if ( theory != newTheory ) // If they're the same,
do nothing
> {
> [self willChange]; // For Enterprise
Objects only
> oldTheory = theory; // Copy the reference
> theory = [newTheory retain];// First retain the new object
> [oldTheory release]; // Then release the old object
> }
>
> return;
> }


I'm new to Cocoa and I'd like to adopt as many useful idioms as I
can find. There seem to be many with regard to writing set accessor
functions...;-) What are the pros and cons of the code above
compared to other set accessor idioms I've seen, like this:
- (void) setTheory: (Theory*)newTheory
{
if ( theory != newTheory )
{
[theory release];
theory = [newTheory retain];
}
}
William Garrison wrote:
> (snip)
>In particular, why would I want to create a temporary pointer to the
>existing ivar value before setting it to the new value? Manu's
>example uses a basic swap pattern, but I don't know why that would be
>useful. Why can't I just release the existing ivar object and then
>retain the new value, as the second code example does?

Multithreading. There's a very small but still very real chance that
the current thread might be switched between the release and the new
assignment, so another thread might try to access the just released
(and maybe deallocated!) object and go boom
Alternatively you could use a simple lock but that's overkill for
the 99% percent when you don't need it.

>Would using autorelease instead of release be another way to protect against
>this? After all, the old object wouldn't be up for a real release until
>after the new object is retained.

Sure, but then you'd have to pay for the autorelease each time, which
is much more expensive than a second reference (memory and cycles-wise).
There ain't no free lunch. :)




2.23:

lib.addn/dev.mac/www.stepwise.com articles archived:
. site:www.stepwise.com/Articles was not easy to find before,
but did ok this time:
http://web.archive.org/web/*/www.stepwise.com/Articles
. HoldMe.html is the mem'mgt tutorial recommended by buck`patterns .
http://web.archive.org/web/20060418151507/www.stepwise.com/Articles/Technical/HoldMe.html



proj.addn/dev.mac/doc's copied to xpw:
2.23:
. explore mac's dev/doc's ...
can't find as expected?
because, they seem to be in a special archive format:
/Developer/Documentation/DocSets/<>.docset
use downloads instead:
. zip cocoa doc's to xpw (the downloaded pdf's) .
2.25:
. by context menu this is seen as a type of folder;
everything is html .



2.25: aq.addn/dev.mac#iPhone/app review/CrazyMikesapps.com

No comments:

Post a Comment