On Fri, 2010/05/14, Thomas Wetmore t...@verizon.net wrote:
From: Thomas Wetmore t...@verizon.net
Subject: Re: TUTORIAL: Generating Unique ID Strings
To: Jens Alfke j...@mooseyard.com
Cc: CocoaDev cocoa-dev@lists.apple.com
Date: Friday, 2010 May 14, 12:30
I must say that I am constantly
I ran into an interesting thread on the Cocoa Developers discussion group, and
thought I 'd try to create a small demo, to see what I could learn, and sure
enough I learned a lot. There were quite a few people that participated and
provided a lot of great information, I tried to quote the email
A couple of points on the code:
(1) If you're concerned about size, store the IDs in NSData instead of
NSString. That way you get the full 8 bits per byte instead of 6, and
avoid the complication of translating to and from ASCII.
(2) If you do need to convert to string, it would be safer
Oh, also, a comment on the site design: why do you present source code
in the form of screenshots of Xcode windows? This makes it impossible
for a user to copy the text easily, for a blind user to read it at
all, or for a search engine to index it. It also consumes orders of
more bandwidth
I must say that I am constantly amused by the nanniness of the Apple discussion
lists, telling people what is safe and what is dangerous. There is nothing
dangerous about bit-twiddling code. You test it til it works and then it works
forever. It doesn't develop bugs later. My goal was to use
On May 14, 2010, at 10:30 AM, Thomas Wetmore wrote:
I must say that I am constantly amused by the nanniness of the Apple
discussion lists, telling people what is safe and what is dangerous.
I'm trying to help people out, many of whom are newbies at Cocoa or at
app programming in general.
On May 14, 2010, at 12:05 PM, Jens Alfke wrote:
Oh, also, a comment on the site design: why do you present source code in the
form of screenshots of Xcode windows? This makes it impossible for a user to
copy the text easily, for a blind user to read it at all, or for a search
engine to
( 3 ) In order to show the source code (exactly as the screen captures show)
using HTML would require so much more work for me, that I would just quit
doing these little tutorials altogether. I know that most people on these
forums know a whole lot more than me, and that's OK, but most most
On May 14, 2010, at 1:39 PM, Daniel Grace wrote:
There's something called Gist. It's largely part of github, but you
don't have to use github to use it. There are other choices, but I do
use github, so Gist is the one that I'm aware of.
http://gist.github.com/
Not saying that you have
On May 14, 2010, at 12:11 PM, Bill Hernandez wrote:
It looks pretty nice, I will have to spend some time trying to see
how I can use it.
I had been using SubVersion via Apache on my OS X Server, and
finally gave up and I am using something I wrote temporarily. I have
heard good things
On May 14, 2010, at 2:14 PM, Jens Alfke wrote:
You don't have to use any particular version control system to use gists.
It's just a service provided by GitHub. All it does is let you paste in some
source code to create a web page from it, with syntax highlighting and line
numbers and
I tried a page on, but it didn't do the color highlighting
You could try pastebin. It seems to be popular with the folks
round here.
Pau Sanders.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
12 matches
Mail list logo