Re: Strange Strange Bug

2008-09-06 Thread Kai
On 6.9.2008, at 02:10, Steve Cronin wrote: Kai; OK That seems reasonable but: why do I not see this behavior anywhere else? Yes, it surprised me a little, too, that I had never seen something like this. Now if I am right, this occurs only if such a variable happens to be at a location

text view example

2008-09-06 Thread Roland Silver
Can anyone point me to a Cocoa app or tutorial or example whose code I can adapt which has a window with a scrollable text view into which I can post text? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Posting Keyboard Events

2008-09-06 Thread Peter N Lewis
At 20:15 -0600 5/9/08, Dave DeLong wrote: How on earth can I post system keyboard events (without getting a beep)? As Ken mentioned, first off make sure the key has somewhere to go. After that, this is roughly the code I use in Keyboard Maestro (extracted bits and pieces, so it wont compile

Using NSArrayController programmatically in library class

2008-09-06 Thread dreamcat7
Hi I am extending a library class which is also one of my application's model objects. The Library class contains an NSMutableArray of NSData which it absolutely needs to perform its tasks. To extend the class i must now also hold metadata about each NSData object in the array (i.e. the

Re: Posting Keyboard Events

2008-09-06 Thread Jean-Daniel Dupas
Le 6 sept. 08 à 14:00, Peter N Lewis a écrit : At 20:15 -0600 5/9/08, Dave DeLong wrote: How on earth can I post system keyboard events (without getting a beep)? As Ken mentioned, first off make sure the key has somewhere to go. After that, this is roughly the code I use in Keyboard

Re: text view example

2008-09-06 Thread Joshua Pennington
Look at the source code for TextEdit inside /Developer/Examples/. However, that may be beyond the scope of what you're trying to achieve. Most of the functionality you'd expect from a text view is built-in to NSTextView. What are you specifically trying to so? Cheers, Joshua Sent from my

Re: Using NSArrayController programmatically in library class

2008-09-06 Thread dreamcat7
Can i bind arrayController.contentArray to employees.name ? or bind arrayController.contentArray to employees and then bind an NSMutableArray to arrayController.arrangedObjects.name ? On 6 Sep 2008, at 14:03, dreamcat7 wrote: Hi I am extending a library class which is also one of my

Re: Posting Keyboard Events

2008-09-06 Thread Dave DeLong
Yes, thank you for asking. This code is in an IBOutlet for a simple controller object. The controller has an outlet for the window and a textfield. The first thing fun on this outlet is the following: [window makeFirstResponder:textField]; And that does work, because the

coredata nstableview bindings/multiple arrays/joins

2008-09-06 Thread Amy Gibbs
I've got an NSTableView that has some columns bound to an NSArrayController. I've also got a some columns that don't want to be bound to the same NSArrayController, called counted,date, and a checkbox called update. I want to be able to enter text into the counted field and tick/untick

MultiTouch.framework Beta Program

2008-09-06 Thread Stefan Hafeneger
Hi, We now started the beta program of our Cocoa multi-touch framework and also did a video (http://www.viddler.com/explore/i10rwthaachen/videos/ 1/ or alternative HD link http://www.vimeo.com/1651801) showing how to develop multi-touch applications for Mac OS X using our framework. If

How to create a GUID?

2008-09-06 Thread Meik Schuetz
Dear everyone, I feel kind of embarrassed to ask, but could someone lead me the way on how to create an globally unique ID (such as for example d73e066c-cc88-4d66-be42-94dc091bb571) ? Best regards and thanks to everyone. Meik ___ Cocoa-dev

SOLVED: Using NSArrayController programmatically in library class

2008-09-06 Thread dreamcat7
Hi, I have now solved my problem by writing a sample project. Here is the solution: // // MyDocument.h // Arrays // // Created by id on 06/09/2008. // Copyright dreamcat7 2008 . All rights reserved. // #import Cocoa/Cocoa.h @interface MyDocument : NSDocument { NSMutableArray*

Re: How to create a GUID?

2008-09-06 Thread Mike Abdullah
CFUUIDCreate() followed by CFUUIDCreateString() Mike. On 6 Sep 2008, at 22:39, Meik Schuetz wrote: Dear everyone, I feel kind of embarrassed to ask, but could someone lead me the way on how to create an globally unique ID (such as for example d73e066c-cc88-4d66-be42-94dc091bb571) ?

Re: How to create a GUID?

2008-09-06 Thread I. Savant
On Sep 6, 2008, at 5:39 PM, Meik Schuetz wrote: I feel kind of embarrassed to ask, but could someone lead me the way on how to create an globally unique ID (such as for example d73e066c-cc88-4d66-be42-94dc091bb571) ? In addition to Mike's response, remember that Google is your friend

Re: How to create a GUID?

2008-09-06 Thread I. Savant
On Sep 6, 2008, at 7:06 PM, Finlay Dobbie wrote: Why the unnecessary copy? - (NSString *)uuid { CFUUIDRef uuidRef = CFUUIDCreate(NULL); CFStringRef uuidStringRef = CFUUIDCreateString(NULL, uuidRef); CFRelease(uuidRef); return [(NSString *)uuidStringRef autorelease]; }

new to Cocoa -- threading question

2008-09-06 Thread John Michael Zorko
Hello, all ... I'm new to Cocoa, and i'm trying to launch a thread. Yet, the app bombs when I try, and the console says it's because the selector isn't implemented: 2008-09-06 18:23:30.919 XXX[2363:20b] SEL: playMP3StreamThread 2008-09-06 18:23:30.927 XXX[2363:20b] *** Terminating app

Re: new to Cocoa -- threading question

2008-09-06 Thread Kyle Sluder
On Sat, Sep 6, 2008 at 9:35 PM, John Michael Zorko [EMAIL PROTECTED] wrote: [NSThread detachNewThreadSelector:@selector(playMP3StreamThread) toTarget:self withObject:streamToPlay]; The selector you want is playMP3StreamThread:, not playMP3StreamThread. That colon is very important.

Re: new to Cocoa -- threading question

2008-09-06 Thread John Michael Zorko
Kyle, [NSThread detachNewThreadSelector:@selector(playMP3StreamThread) toTarget:self withObject:streamToPlay]; The selector you want is playMP3StreamThread:, not playMP3StreamThread. That colon is very important. Ah, yes -- the colon. I couldn't live without mine ;-) *cymbal

Re: How to create a GUID?

2008-09-06 Thread Clark Cox
On Sat, Sep 6, 2008 at 5:06 PM, I. Savant [EMAIL PROTECTED] wrote: On Sep 6, 2008, at 7:06 PM, Finlay Dobbie wrote: Why the unnecessary copy? - (NSString *)uuid { CFUUIDRef uuidRef = CFUUIDCreate(NULL); CFStringRef uuidStringRef = CFUUIDCreateString(NULL, uuidRef);

Re: How to create a GUID?

2008-09-06 Thread Finlay Dobbie
On Sat, Sep 6, 2008 at 10:55 PM, I. Savant [EMAIL PROTECTED] wrote: At the bottom of the page, there's this: - (NSString *)uuid { CFUUIDRef uuidRef = CFUUIDCreate(NULL); CFStringRef uuidStringRef = CFUUIDCreateString(NULL, uuidRef); CFRelease(uuidRef); NSString

[NEWB] An object, an array item and a string

2008-09-06 Thread Aron Spesard
So after reading the various image viewer tutorials on the web and getting through the StretchView chapter in Cocoa Programming for MAC OS X, I decided to try and write one that takes a couple of arrays of images and composites two images together. Click a button and the view updates to

Re: [NEWB] An object, an array item and a string

2008-09-06 Thread Nathan Kinsinger
On Sep 6, 2008, at 7:10 PM, Aron Spesard wrote: So after reading the various image viewer tutorials on the web and getting through the StretchView chapter in Cocoa Programming for MAC OS X, I decided to try and write one that takes a couple of arrays of images and composites two images