Xcode editor question

2008-04-10 Thread Valentin Dan
Hi, Is there any way I can add “custom colouring” in the editor ? (for instance if I want all NSClasses to be coloured differently) Thanks! ___ Valentin Dan, Software Developer Direct: +1 905 886 1833 ex

Can I record video in iPhone?

2008-04-10 Thread Jason Guo
Dear all: Any dev guide or sample code for recording video in iPhone? Many Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admi

Re: core data and IB outlet binding

2008-04-10 Thread Torsten Curdt
On Apr 9, 2008, at 17:45, Mike R. Manzano wrote: Are you sure you're calling applyFilter after or during awakeFromNib? i.e., you're not calling applyFilter in some sort of - init, right? No, see the IBAction ...it's bound to a button and it only gets called when I press the button. cheer

Re: core data and IB outlet binding

2008-04-10 Thread Torsten Curdt
Is you outlet actually connected in IB? If it is properly connected, it shouldn't be nil. Yeah ...that's connected. Which is why I am so surprised it's nil. Well, AFAIK it's not possible for an outlet to be nil, as long as the object with the outlet is instantiated in the nib or is the file

Capture youtube image in webview

2008-04-10 Thread Xin
Hello, First, sorry for my english, I'm a catalan. Well, I'm a newbee in Mac and Cocoa and I have tried to make an application for capture an image of web. It's all ok. My app work correctly, except when I capture a module of vídeo. In this cases the result is wrongly. How you can see in t

Re: core data and IB outlet binding

2008-04-10 Thread Torsten Curdt
On Apr 10, 2008, at 10:00, Torsten Curdt wrote: Is you outlet actually connected in IB? If it is properly connected, it shouldn't be nil. Yeah ...that's connected. Which is why I am so surprised it's nil. Well, AFAIK it's not possible for an outlet to be nil, as long as the object with

Re: Highlight color of a NSTableView row

2008-04-10 Thread Cathy Shive
If you're targeting Leopard, there is an NSTableView method you can override for this (a public one!) -(void)highlightSelectionInClipRect:(NSRect)theClipRect You have to actually draw the highlights, it's not simply a matter of setting the color. If you look at the post Ben linked to, there

Re: Xcode editor question

2008-04-10 Thread Mike Abdullah
You want the Xcode mailing list, not cocoa-dev. On 10 Apr 2008, at 08:01, Valentin Dan wrote: Hi, Is there any way I can add “custom colouring” in the editor ? (for instance if I want all NSClasses to be coloured differently) Thanks!

NSString value mangled in NSDictionary with Garbage Collection

2008-04-10 Thread Jason Kravitz
I created a while loop where I am reading through a text file and pulling out certain words based on RegEx criteria. I want to add these words as a comma separated list under different keys in an NSMutableDictionary. I've created a simplified psuedo-code representation of what I'm trying to do as i

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-10 Thread slasktrattenator
Thanks Mike, adding a default to NSArgumentDomain (i.e. by passing {"-AppleScrollBarVariant", "Single"} to the executable on launch) did the trick. On Thu, Apr 10, 2008 at 1:24 AM, Mike Abdullah <[EMAIL PROTECTED]> wrote: > I believe one normally does this system-wide via the user defaults. I > su

Re: Capture youtube image in webview

2008-04-10 Thread Chris Ryland
On Apr 10, 2008, at 5:24 AM, Xin wrote: First, sorry for my english, I'm a catalan. Well, I'm a newbee in Mac and Cocoa and I have tried to make an application for capture an image of web. It's all ok. My app work correctly, except when I capture a module of vídeo. In this cases the resul

Re: Capture youtube image in webview

2008-04-10 Thread João Pavão
Hi Xin, Take a look at this thread in the webkit mailing list: . I implemented what was suggested in that thread and it worked out very well. I also added a very small delay before actually trying to capture the WebView

Re: some questions about creating image thumbnails

2008-04-10 Thread Jesse Grosjean
Ben and others thank you. Through that link I found CGImageSourceCreateThumbnailAtIndex, which looks like it might be just what I need. Jesse ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

NSURLConnection doesn't post

2008-04-10 Thread Micha Fuhrmann
Hi there, I'm running into a problem with NSURLConnection and I can't solve it, any help greatly appreciated. in my main (Shared Instance) class i have the following code to post crash logs: - (IBAction)test:(id)sender{ [self sendLogs]; } - (void)sendLogs { NSMutableStri

Re: Capture youtube image in webview

2008-04-10 Thread John Joyce
You may need to try a different method. The keyboard shortcuts for taking screenshots, as well as the bundled application Grab, are both capable of making an image that includes flash video in a web view. You might simply do it with AppleScript...

networking question

2008-04-10 Thread Valentin Dan
Hi, What’s the best way to create a connection to a server in Cocoa + Objective-C ? Is there another way than BSD sockets or CFSocketRef ? ___ Valentin Dan, Software Developer Direct: +1 905 886 1833 ext.3

Re: networking question

2008-04-10 Thread Alastair Houghton
On 10 Apr 2008, at 14:24, Valentin Dan wrote: What’s the best way to create a connection to a server in Cocoa + Objective-C ? It depends what you're trying to achieve. If your server is also implemented using Cocoa/ObjC, Distributed Objects is quite a nice solution. Or you could use SOAP

Re: NSURLConnection doesn't post

2008-04-10 Thread Michael Vannorsdel
Maybe a shot in the dark, but setting self as delegate, are you sure self is the correct object if called from other objects (self is not the calling object)? On Apr 10, 2008, at 6:27 AM, Micha Fuhrmann wrote: Now if I place a button on my interface and call test everything is fine, the p

Re: NSURLConnection doesn't post

2008-04-10 Thread Michael Vannorsdel
Also, this method may be called multiple times with only a fragment of the data each time. On Apr 10, 2008, at 6:27 AM, Micha Fuhrmann wrote: - (void)connection:(NSURLConnection *)connection didReceiveData: (NSData *)data { NSString* thhhe = [[NSString alloc]initWithData:data encoding:N

Re: NSURLConnection doesn't post

2008-04-10 Thread Micha Fuhrmann
Yes, I've tried that too, I've set the delegate to be my shared instance. Micha On 10 avr. 08, at 15:57, Michael Vannorsdel wrote: Maybe a shot in the dark, but setting self as delegate, are you sure self is the correct object if called from other objects (self is not the calling object)?

Re: NSURLConnection doesn't post

2008-04-10 Thread Micha Fuhrmann
Correct, however it doesn't get called even once, the only answer I've set from the server right now is an OK string. Micha On 10 avr. 08, at 15:59, Michael Vannorsdel wrote: Also, this method may be called multiple times with only a fragment of the data each time. On Apr 10, 2008, at 6:2

RE: networking question

2008-04-10 Thread Valentin Dan
Hi, A few more details :) - server: Windows (so absolutely not Cocoa) - communication : XML messages (need to both send & receive messages) ___ Valentin Dan, Software Developer Direct: +1 905 886 1833 ext.3047

Re: networking question

2008-04-10 Thread Alastair Houghton
On 10 Apr 2008, at 15:22, Valentin Dan wrote: A few more details :) - server: Windows (so absolutely not Cocoa) - communication : XML messages (need to both send & receive messages) What kind of XML messages? Over what kind of transport? HTTP? Something else? XML on its own is just a d

Re: Tips to deploy applications to multiple Mac OS X versions

2008-04-10 Thread Steve Christensen
On Apr 9, 2008, at 11:08 PM, Ben Lachman wrote: On Apr 9, 2008, at 3:27 PM, David Duncan wrote: On Apr 9, 2008, at 7:43 AM, Lorenzo Bevilacqua wrote: I'm trying to build a Cocoa application so that it can run on Mac OS X from version 10.3.9 to 10.5. I have 10.5 installed so the application ru

Re: Can I record video in iPhone?

2008-04-10 Thread Ben Lachman
As always: a) the iPhone SDK is under a NDA, so releasing sample code, and/or talking about any APIs is not allowed. b) the iPhone doesn't natively support video in any of its released features/application so I'd guess this might not be the easiest thing to do. ->Ben -- Ben Lachman Aca

starter application

2008-04-10 Thread Gonzalo Castro
We have an application that needs to be launched by a shell script. To give the user dbl click launching of this app we created a starter application which, on launch, uses system() to call the shell script which then runs the main application. The down side to this charade is that we see t

CoreAnimation in a modal window

2008-04-10 Thread Pierre Bernard
Hi! I am trying to do some nice drawing using CoreAnimation. It all works fine, except for a long series of "CoreAnimation: rendering error 500" messages. However, as soon as I try to use my window in the context of a modal session, only the background is draw. The actual animated layers

Re: starter application

2008-04-10 Thread Jean-Daniel Dupas
Le 10 avr. 08 à 17:33, Gonzalo Castro a écrit : We have an application that needs to be launched by a shell script. To give the user dbl click launching of this app we created a starter application which, on launch, uses system() to call the shell script which then runs the main applicatio

Re: core data and IB outlet binding

2008-04-10 Thread Keary Suska
on 4/10/08 4:30 AM, [EMAIL PROTECTED] purportedly said: >> Here is a small screenshot of the bindings >> >> http://vafer.org/pub/bindings.png >> >> As the button binding is working so should the NSTextField binding ...one >> would think. But just to verify I've also added the awakeFromNib. As e

Re: looking for sample code to read UUID from a disk volume.

2008-04-10 Thread Herb Petschauer
On 09/04/2008, Chris Suter <[EMAIL PROTECTED]> wrote: > > On 10/04/2008, at 5:05 AM, Herb Petschauer wrote: > > > > And note that only a GUID partition table scheme will yield partitions > > with a UUID. The old style Apple Partition Map will not (so any > > legacy or even current PPC machines).

Re: NSURLConnection doesn't post

2008-04-10 Thread Tom Harrington
On Thu, Apr 10, 2008 at 6:27 AM, Micha Fuhrmann <[EMAIL PROTECTED]> wrote: > Now if I place a button on my interface and call test everything is fine, > the post is submitted and the delegate method is called. Suffice I call the > test method from another class and nothing gets posted (break point

Re: [OFF] unicode characters

2008-04-10 Thread Petite Abeille
On Apr 9, 2008, at 8:14 PM, Alexander Cohen wrote: ü = u é = e Anyone know of a way to do that or do i need a lookup table with all characters and their equivalents? For, hmm, inspiration, take a look at Sean M. Burke's Unidecode: http://interglacial.com/~sburke/tpj/as_html/tpj22.html E.

recursive dir searching

2008-04-10 Thread Wesley Smith
hi, I've been trying to use NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager] enumeratorAtPath:dir]; to recursively search for a file in a given directory but am coming across some minor details that I'm not sure what the best way to deal with is. There's a method skipDescendents,

Re: CoreAnimation in a modal window

2008-04-10 Thread Dimitri Bouniol
That error indicates that the image stored for the layer is too large (because the layer itself is too large probably) for your graphics card to handle, and therefore won't be drawn. Consider using smaller layers, or take a look at CATiledLayer. Never tried it, but that's what NSScrollView

Tight loop processing

2008-04-10 Thread Don Arnel
Hey all... This is my first time posting to this list. I've been a Windows developer for many many years and have just recently started to play around with Macs. I feel like a beginner all over again! Anyway I've got a Cocoa application which runs a simulation loop 1000s of times. Of

Re: Tight loop processing

2008-04-10 Thread Stéphane
On Apr 10, 2008, at 8:00 PM, Don Arnel wrote: Hey all... This is my first time posting to this list. I've been a Windows developer for many many years and have just recently started to play around with Macs. I feel like a beginner all over again! Anyway I've got a Cocoa application

Re: Tight loop processing

2008-04-10 Thread Jamie Phelps
Maybe look into NSThread and see if it meets your needs. You'd run your loop in the thread and keep processing events like normal in the main thread. (I'm still rather new to Cocoa myself, so I hope I'm not misleading you. The other list readers will correct me if I'm wrong.) HTH, Jamie

Re: Tight loop processing

2008-04-10 Thread Don Arnel
I thought maybe there was a simple message I could send to NSApp, but it looks like putting the loop in a new thread is the way to go. Thanks! On Apr 10, 2008, at 2:06 PM, Jamie Phelps wrote: Maybe look into NSThread and see if it meets your needs. You'd run your loop in the thread and k

A simple Objective-C question

2008-04-10 Thread Rama Krishna
I am new to Objective-C but I have done C++/C#/Java work. I have been doing some experiments to understand how the language works. I found that it is not necessary for an Objective-C class to derive from Object. I was able to create a class which did not derive from Object contrary to my assumption

Re: Tight loop processing

2008-04-10 Thread Shawn Erickson
On Thu, Apr 10, 2008 at 11:14 AM, Don Arnel <[EMAIL PROTECTED]> wrote: > I thought maybe there was a simple message I could send to NSApp, but it > looks like putting the loop in a new thread is the way to go. Thanks! Likely throwing this loop off to an NSThread is the cleanest and most efficient

Re: Tight loop processing

2008-04-10 Thread Michael Vannorsdel
There's NSRunLoop's runUntilDate: or CFRunLoopRunInMode if you'd like to avoid multithreading. Though threading on Mac OS X is pretty lightweight and has plenty of ways to do inter-thread communication. On Apr 10, 2008, at 12:00 PM, Don Arnel wrote: Hey all... This is my first time posti

RE: A simple Objective-C question

2008-04-10 Thread john darnell
Mr. Krishna: I, too am new to Objective-C, but in the two books I have been studying on the language, they both make the point that Objective-C plays nicely with both C and C++. Could you simply write a standard C++ class and instantiate it the same way one does with other C++ classes (i.e. by

Re: A simple Objective-C question

2008-04-10 Thread Michael Vannorsdel
You'll want to make all basic classes a subclass of NSObject so alloc/ dealloc, retain/release function properly. Unless you really want to implement you're own alloc/dealloc method, but I think that's unnecessary work. On Apr 10, 2008, at 12:22 PM, Rama Krishna wrote: I am new to Objecti

re: NSTreeController Core Data Duplicate Entries Problem

2008-04-10 Thread eblugamma
Hi Chris, I think I have a solution for you. I've been having the same exact problem as you, and while looking for the solution, I stumbled upon your post. then I stumbled upon the solution. I don't have a clear picture of whats happening, but your duplicate entry problem centers on the pr

Re: A simple Objective-C question

2008-04-10 Thread Bill Bumgarner
On Apr 10, 2008, at 11:22 AM, Rama Krishna wrote: I am new to Objective-C but I have done C++/C#/Java work. I have been doing some experiments to understand how the language works. I found that it is not necessary for an Objective-C class to derive from Object. I was able to create a class w

Re: A simple Objective-C question

2008-04-10 Thread stephen joseph butler
On Thu, Apr 10, 2008 at 1:22 PM, Rama Krishna <[EMAIL PROTECTED]> wrote: > However, such a class has a problem. It cannot be allocated or > initialized. > Because it can never get the alloc message as the alloc message is > declared > in the Object class. My question ,therefore, is how can such cl

Re: [OFF] unicode characters

2008-04-10 Thread Gerriet M. Denkmann
On 9 Apr 2008, at 21:02, [EMAIL PROTECTED] wrote: Take a look at CFStringTransform(). The details will depend on exactly what you want to do. I just have taken a look at CFStringTransform. kCFStringTransformLatinThai = "reversible transform to transliterate text to Thai from Latin." But

Replacement for GetApplicationEventTarget?

2008-04-10 Thread Michael Vannorsdel
Is there a replacement function for GetApplicationEventTarget? I'm looking for one since this is the only thing I have left that's not 64 bit compatible. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

ObjC static member variable

2008-04-10 Thread vance
Does ObjC supports Static Member Variable, and if so, how do you set it? The getter function gets a compile time error. In C++ we do MyObject::staticObject to return the static member variable but I am not sure how is that done in ObjC Ex: @interface MyObject : NSObject { s

NSArrayController and managedObjectContext Problem

2008-04-10 Thread Michael Burns
Hello list, I've been trying to track down the cause of an EXC_BAD_ACCESS I've been getting upon document closure. Here is the set up -- I have a custom view that is programmatically bound to the arrangedObjects of an array controller. The array controller is bound to the managedObjectC

RE: ObjC static member variable

2008-04-10 Thread Rama Krishna
You can declare a static member variable in the implementation file (.m or .mm). static int someSharedVariable; @implementation //Use the someSharedVariable in any of the methods @end -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vance Sent: Thursda

Re: Replacement for GetApplicationEventTarget?

2008-04-10 Thread David Duncan
On Apr 10, 2008, at 12:21 PM, Michael Vannorsdel wrote: Is there a replacement function for GetApplicationEventTarget? I'm looking for one since this is the only thing I have left that's not 64 bit compatible. You will have to elaborate on what you are using it for, as there are many pos

Re: ObjC static member variable

2008-04-10 Thread vance
Yes that works but then it becomes a global variable. I was wondering if ObjC can handle static member variables. If not I will have to hack it up and declare the variable outside of the class Thanks. Vance On Apr 10, 2008, at 12:36 PM, Rama Krishna wrote: You can declare a static member va

Re: A simple Objective-C question

2008-04-10 Thread Kevin Dixon
While you can use Objective-C++, the main reservation is you cannot combine the semantics of the two languages. Objects of each language need to maintain clear divison, and only be created and deleted according to their native language. So C++ objects use new/delete and Objective-C objects must us

Re: Replacement for GetApplicationEventTarget?

2008-04-10 Thread Michael Vannorsdel
To install an event handler for a global hotkey. On Apr 10, 2008, at 1:39 PM, David Duncan wrote: On Apr 10, 2008, at 12:21 PM, Michael Vannorsdel wrote: Is there a replacement function for GetApplicationEventTarget? I'm looking for one since this is the only thing I have left that's not

Re: ObjC static member variable

2008-04-10 Thread Randall Meadows
On Apr 10, 2008, at 1:42 PM, vance wrote: Yes that works but then it becomes a global variable. I was wondering if ObjC can handle static member variables. If not I will have to hack it up and declare the variable outside of the class Yep, that was the answer I got from several sources when

Re: ObjC static member variable

2008-04-10 Thread j o a r
On Apr 10, 2008, at 12:42 PM, vance wrote: Yes that works but then it becomes a global variable. It's static, so it's local to the module being compiled. I was wondering if ObjC can handle static member variables. If not I will have to hack it up and declare the variable outside of the cl

Re: ObjC static member variable

2008-04-10 Thread Michael Vannorsdel
You'll need to move the declaration outside the interface. You can stick it in the .m file for that class like you can with C/C++. On Apr 10, 2008, at 1:29 PM, vance wrote: Does ObjC supports Static Member Variable, and if so, how do you set it? The getter function gets a compile time er

Re: Tight loop processing

2008-04-10 Thread Brian Stern
On Apr 10, 2008, at 2:00 PM, Don Arnel wrote: I've got a Cocoa application which runs a simulation loop 1000s of times. Of course, this prevents any user interaction with the rest of the program while the simulation is running. When I was programming for Windows there was a call in Visual B

Re: ObjC static member variable

2008-04-10 Thread j o a r
On Apr 10, 2008, at 12:48 PM, j o a r wrote: No, ObjC doesn't have any support for static member variables. Btw. For ObjC I think it would be more appropriate to call them "class variables". j o a r ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: Replacement for GetApplicationEventTarget?

2008-04-10 Thread Nick Zitzmann
On Apr 10, 2008, at 1:21 PM, Michael Vannorsdel wrote: Is there a replacement function for GetApplicationEventTarget? I'm looking for one since this is the only thing I have left that's not 64 bit compatible. GetApplicationEventTarget() is actually in PPC64 and X86-64 even though it isn

Re: ObjC static member variable

2008-04-10 Thread Scott Ribe
> Yes that works but then it becomes a global variable. Not when it's declared static. As in plain C, static variables are at file scope. If you really want to access it via instances of the Objective-C class (or the class itself), you'll just have to implement an appropriate method to return it,

Re: ObjC static member variable

2008-04-10 Thread Andy Lee
On Apr 10, 2008, at 4:08 PM, Scott Ribe wrote: Yes that works but then it becomes a global variable. Not when it's declared static. As in plain C, static variables are at file scope. If you really want to access it via instances of the Objective-C class (or the class itself), you'll just

Re: System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-10 Thread Tom Harrington
On Wed, Apr 9, 2008 at 11:06 AM, Dave Camp <[EMAIL PROTECTED]> wrote: > After designing the UI for a new System Preferences pane I've discovered > that the window size in Leopard is 75 pixels wider than it was in Tiger or > earlier OS releases. The net result appears to be that my shiny new UI is >

Singletons on Leopard with GC

2008-04-10 Thread Karl Moskowski
I have a couple of classes for which I'd like to use the singleton pattern. I read some of the old posts on this list and at cocoadev.com about approaches to take. They mention Apple's recommendations about overriding retain, release, etc. to essentially turn them into no-ops. However, th

Re: Replacement for GetApplicationEventTarget?

2008-04-10 Thread Jean-Daniel Dupas
Le 10 avr. 08 à 22:05, Nick Zitzmann a écrit : On Apr 10, 2008, at 1:21 PM, Michael Vannorsdel wrote: Is there a replacement function for GetApplicationEventTarget? I'm looking for one since this is the only thing I have left that's not 64 bit compatible. GetApplicationEventTarget() is

Re: Tight loop processing

2008-04-10 Thread Wade Tregaskis
Threads are almost always the right way to do what the OP wants. The problem as was presented is that there's some work to do, which happens to be dividable into N segments. There were no bounds placed on how long it takes to run any individual segment. And even if there were, they'd pro

Re: Replacement for GetApplicationEventTarget?

2008-04-10 Thread Michael Vannorsdel
Great thanks a lot. On Apr 10, 2008, at 3:11 PM, Jean-Daniel Dupas wrote: Le 10 avr. 08 à 22:05, Nick Zitzmann a écrit : On Apr 10, 2008, at 1:21 PM, Michael Vannorsdel wrote: Is there a replacement function for GetApplicationEventTarget? I'm looking for one since this is the only thing

Re: System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-10 Thread E. Wing
On 4/9/08, Dave Camp <[EMAIL PROTECTED]> wrote: > After designing the UI for a new System Preferences pane I've > discovered that the window size in Leopard is 75 pixels wider than it > was in Tiger or earlier OS releases. The net result appears to be that > my shiny new UI is clipped on the right

Re: core data and IB outlet binding

2008-04-10 Thread Torsten Curdt
On Apr 10, 2008, at 17:51, Keary Suska wrote: on 4/10/08 4:30 AM, [EMAIL PROTECTED] purportedly said: Here is a small screenshot of the bindings http://vafer.org/pub/bindings.png As the button binding is working so should the NSTextField binding ...one would think. But just to verify I've

Re: Tight loop processing

2008-04-10 Thread Mike R. Manzano
Depending on the nature of your simulation, and if you don't mind being Leopard-only, you might break it down into a series of NSOperations and let Cocoa handle the rest for you. Mike On Apr 10, 2008, at 11:00 AM, Don Arnel wrote: Hey all... This is my first time posting to this list. I'

Re: Tips to deploy applications to multiple Mac OS X versions

2008-04-10 Thread Chris Suter
One caveat, though, is that you should probably have a runtime check for the minimum OS version you expect so that you don't end up with a crash if someone tries to use your nifty Leopard features on Tiger. Adding something to main() would probably be easiest, either checking against NSAppK

Re: Tight loop processing

2008-04-10 Thread Ken Thomases
On Apr 10, 2008, at 4:13 PM, Wade Tregaskis wrote: Threads are almost always the right way to do what the OP wants. Agreed. Furthermore, if you have the luxury of targeting Leopard, look into NSOperation and NSOperationQueue. Using those properly, you can get maximum concurrency for the h

Re: System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-10 Thread Dave Camp
On Apr 10, 2008, at 3:06 PM, E. Wing wrote: On 4/9/08, Dave Camp <[EMAIL PROTECTED]> wrote: After designing the UI for a new System Preferences pane I've discovered that the window size in Leopard is 75 pixels wider than it was in Tiger or earlier OS releases. The net result appears to be that

Making use of Core 2 features without 64bit addressing

2008-04-10 Thread Michael Vannorsdel
Is it possible to build a binary that uses the extra registers and features of x86_64 but without making a 64 bit binary? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

YACCOB - Yet Another Custom Cell OutlineView Binding problem

2008-04-10 Thread Paolo Ottanà
Hi everybody, I am stuck with a (maybe trivial) problem, but I did not find a solution suitable for my case in the old messages and on the net. My situation is this: I want to use a custom button cell inside an OutlineView to add some color and text to the basic checkbox and draw a set of No

Re: Making use of Core 2 features without 64bit addressing

2008-04-10 Thread Nick Zitzmann
On Apr 10, 2008, at 4:46 PM, Michael Vannorsdel wrote: Is it possible to build a binary that uses the extra registers and features of x86_64 but without making a 64 bit binary? I'm pretty sure the answer is no. What are you trying to accomplish? Nick Zitzmann _

Re: Making use of Core 2 features without 64bit addressing

2008-04-10 Thread Michael Vannorsdel
Just an optimized build for core 2 and xeon, but I have to link with 10.4SDK and it has some header bugs when building for 64 bit Intel (mostly from TARGET_CPU_X86 not defined). I don't really need 64 bit addressing but would like to use the additional registers and 64 bit integer math.

Re: Making use of Core 2 features without 64bit addressing

2008-04-10 Thread Clark Cox
On Thu, Apr 10, 2008 at 3:46 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > Is it possible to build a binary that uses the extra registers and features > of x86_64 but without making a 64 bit binary? No. May I ask why you don't want to make a 64-bit binary? -- Clark S. Cox III [EMAIL PROTEC

Re: Making use of Core 2 features without 64bit addressing

2008-04-10 Thread Nick Zitzmann
On Apr 10, 2008, at 5:00 PM, Michael Vannorsdel wrote: Just an optimized build for core 2 and xeon, but I have to link with 10.4SDK and it has some header bugs when building for 64 bit Intel (mostly from TARGET_CPU_X86 not defined). I don't really need 64 bit addressing but would like to u

Re: recursive dir searching

2008-04-10 Thread Rainer Brockerhoff
At 11:09 -0700 10/04/08, [EMAIL PROTECTED] wrote: >From: "Wesley Smith" <[EMAIL PROTECTED]> >Date: Tue, 8 Apr 2008 17:20:25 -0600 >Message-ID: <[EMAIL PROTECTED]> > >I've been trying to use >NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager] >enumeratorAtPath:dir]; > >to recursively s

Re: Making use of Core 2 features without 64bit addressing

2008-04-10 Thread Clark Cox
On Thu, Apr 10, 2008 at 4:00 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > Just an optimized build for core 2 and xeon, but I have to link with 10.4SDK Are you sure that you have to use the 10.4 SDK? Just use the 10.5 SDK, but set the deployment target to 10.4 for your 32-bit architectures.

Re: Tips to deploy applications to multiple Mac OS X versions

2008-04-10 Thread Ben Lachman
On Apr 10, 2008, at 6:19 PM, Chris Suter wrote: One caveat, though, is that you should probably have a runtime check for the minimum OS version you expect so that you don't end up with a crash if someone tries to use your nifty Leopard features on Tiger. Adding something to main() would pro

Re: Highlight color of a NSTableView row

2008-04-10 Thread Eric Gorr
On Apr 10, 2008, at 6:00 AM, Cathy Shive wrote: If you're targeting Leopard, there is an NSTableView method you can override for this (a public one!) -(void)highlightSelectionInClipRect:(NSRect)theClipRect You have to actually draw the highlights, it's not simply a matter of setting the c

Re: ObjC static member variable

2008-04-10 Thread Chris Hanson
On Apr 10, 2008, at 12:42 PM, vance wrote: Yes that works but then it becomes a global variable. I was wondering if ObjC can handle static member variables. If not I will have to hack it up and declare the variable outside of the class A C++ static member variable is a global variable too, i

Re: Highlight color of a NSTableView row

2008-04-10 Thread Eric Gorr
On Apr 10, 2008, at 8:00 PM, Eric Gorr wrote: On Apr 10, 2008, at 6:00 AM, Cathy Shive wrote: If you're targeting Leopard, there is an NSTableView method you can override for this (a public one!) -(void)highlightSelectionInClipRect:(NSRect)theClipRect You have to actually draw the highli

Re: Highlight color of a NSTableView row

2008-04-10 Thread Corbin Dunn
If you're targeting Leopard, there is an NSTableView method you can override for this (a public one!) -(void)highlightSelectionInClipRect:(NSRect)theClipRect Ideally this should be the only method you have to override for Tiger also. You may have to coordinate with the cell (or use a custom

Re: Highlight color of a NSTableView row

2008-04-10 Thread Corbin Dunn
Playing with this a bit more, it appears that I need to also do: - (id)_highlightColorForCell:(NSCell *)cell { // we need to override this to return nil // or we'll see the default selection rectangle when the app is running // in any OS before leopard // you can al

Re: Highlight color of a NSTableView row

2008-04-10 Thread Eric Gorr
On Apr 10, 2008, at 8:28 PM, Corbin Dunn wrote: If you're targeting Leopard, there is an NSTableView method you can override for this (a public one!) -(void)highlightSelectionInClipRect:(NSRect)theClipRect Ideally this should be the only method you have to override for Tiger also. You ma

Re: Highlight color of a NSTableView row

2008-04-10 Thread Eric Gorr
On Apr 10, 2008, at 8:30 PM, Corbin Dunn wrote: Playing with this a bit more, it appears that I need to also do: - (id)_highlightColorForCell:(NSCell *)cell { // we need to override this to return nil // or we'll see the default selection rectangle when the app is running

how should I go about downloading files

2008-04-10 Thread Laimonas Simutis
Hey, This is my first cocoa projects so I am kind of finding my way around the framework. The question I have is maybe more related to the design practices with cocoa. I make a HTTP call to a server which gives me back a list of urls pointing to mp3 files. For each url handling I created FileDown

Question about NSTreeController/NSOutlineView instance cleanup

2008-04-10 Thread Markus Spoettl
Hi, I have a simple test application (modeled after the SourceView sample) which is a NSDocument based application. The NSDocument derived class contains a root NSMutableArray which serves as the content for an NSOutlineView which is attached to the content through binding. @inter

Re: how should I go about downloading files

2008-04-10 Thread Michael Vannorsdel
You can start new downloads from the queue in your downloadDidFinish: delegate method. On Apr 10, 2008, at 7:04 PM, Laimonas Simutis wrote: The problem with the above is that I spawn as many downloaders as the urls returned by the server since downloadItem does't block. What would be the be

Why might DO/NSConnection fail?

2008-04-10 Thread Brad Peterson
Hi all, I've got a user reporting a crash in one of our components. The truly weird thing, for me, is that this is a crash in the DO portion of our code, which would seem to indicate that NSConnection wasn't able to find the DO server. (Now, this is odd in and of itself, since the server launche

Re: Why might DO/NSConnection fail?

2008-04-10 Thread Michael Vannorsdel
I've seen a similar crash when a user had a download accelerator input manager installed. On Apr 10, 2008, at 7:45 PM, Brad Peterson wrote: Hi all, I've got a user reporting a crash in one of our components. The truly weird thing, for me, is that this is a crash in the DO portion of our co

Re: Question about NSTreeController/NSOutlineView instance cleanup

2008-04-10 Thread Markus Spoettl
On Apr 10, 2008, at 6:07 PM, Markus Spoettl wrote: If I interpret this correctly I'm removing my tree content from under the NSTreeController while it's still using it. If found that when I add [treeContent removeAllObjects]; Small correction this (calling removeAllObject) doesn't remo

NSArrayController's "selectionIndex" weirdness

2008-04-10 Thread Johnny Lundy
Hello all, In a TableView column bound to an NSArrayController which has playerArray, a mutable array, as its content. An NSButton binding selectionIndex of the controller as the Argument 1, and the Selector Name to the method below, here's what I get in the method: - (void) nightKill:(

Re: Question about NSTreeController/NSOutlineView instance cleanup

2008-04-10 Thread Quincey Morris
On Apr 10, 2008, at 18:52, Markus Spoettl wrote: So the question remains, how to tell NSTreeController to release all ties to the node hierarchy so it can be cleaned up? The first thing to check is how you are initializing the treeContent variable. What method are you using to create it, a

Re: NSArrayController's "selectionIndex" weirdness

2008-04-10 Thread Quincey Morris
On Apr 10, 2008, at 19:09, Johnny Lundy wrote: - (void) nightKill:(NSUInteger) theWhackedOne { NSLog(@"SelectionIndex=%@",theWhackedOne); [playerArray removeObjectAtIndex:theWhackedOne]; return; } The array controller is sending you a NSNumber whose value is the sele

Re: Question about NSTreeController/NSOutlineView instance cleanup

2008-04-10 Thread Markus Spoettl
The first thing to check is how you are initializing the treeContent variable. What method are you using to create it, and are you retaining it? OK, this is what I do: - (id)init { self = [super init]; if (self) { treeContent = [[NSMutableArray alloc] init]; } return

  1   2   >