Re: [OT] All WWDC 2002 Sessions now available on ADC
Re: [OT] All WWDC 2002 Sessions now available on ADC
- Subject: Re: [OT] All WWDC 2002 Sessions now available on ADC
- From: Shawn Erickson <email@hidden>
- Date: Sun, 1 Jun 2003 16:33:06 -0700
On Sunday, June 1, 2003, at 04:08 PM, Joseph Heck wrote:
On Sunday, June 1, 2003, at 11:07 AM, Don Arbow wrote:
All ADC members can now view every 2002 WWDC session via QT streaming
video. This is good news since someone on this list recently
suggested session 302, "Cocoa API Techniques", as especially helpful
to Cocoa programmers struggling with memory management concepts and
retain/release/autorelease. This particular session was previously
unavailable unless you paid for it.
Speaking of which, does anyone have the script that was referenced in
Session 908
(Delivering with Project Builder) from last WWDC? The one that did all
the packaging in a disk image, creating it, compressing it, etc.
No... but this is what I use (pulled out from a family of scripts)
-----
hdiutil create -quiet "$IMAGENAME.dmg" -volname "$FSNAME" -fs HFS+
-megabytes $SIZE
TMPFILE=`mktemp -t "hdiutil.out"`
hdiutil attach "$IMAGENAME.dmg" > "$TMPFILE"
DEVFILE=`cat "$TMPFILE" | grep '/dev/disk[0-9][^s]' | awk -F' ' '{
print $1 }'`
VOLPATH=`cat "$TMPFILE" | grep 'HFS' | awk -F'\t' '{ print $3 }'`
rm -f "$TMPFILE"
<<copy stuff to VOLPATH here>>
`hdiutil detach -quiet "$DEVFILE"`
TMPNAME="$IMAGENAME.tmp.dmg"
if [ -x "$TMPNAME" ]; then
rm -f "$TMPNAME"
fi
hdiutil convert -quiet "$IMAGENAME.dmg" -format UDCO -o "$TMPNAME"
mv "$TMPNAME" "$IMAGENAME.dmg"
hdiutil internet-enable -yes "$IMAGENAME.dmg"
----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.