Re: QTMovie grabing while playback

2008-04-23 Thread Jean-Daniel Dupas
Le 23 avr. 08 à 19:58, Randall Meadows a écrit : On Apr 23, 2008, at 11:30 AM, Bob Smith wrote: On Apr 23, 2008, at 10:05 AM, douglas a. welton wrote: QTMovieView has a delegate method - (CIImage*) view: (QTMovieView *)Target_View willDisplayImage: (CIImage *)New_Image This method give

Re: NSTextView text coloring problem

2008-04-23 Thread Jean-Daniel Dupas
Look like you text view does not allow rich text. Make sure the Allow Rich Text check box is checked in your TextView config in IB or set it programaticaly using -[NSTextView setRichText:] - (void)setRichText:(BOOL)flag “Controls whether the text views sharing the receiver’s layout manager

Re: SOLVED ?? Re: Application Launch (or doesn't Launch as such)

2008-04-24 Thread Jean-Daniel Dupas
Le 24 avr. 08 à 20:51, Jens Alfke a écrit : On 24 Apr '08, at 1:34 AM, David Wilson wrote: Well it's all working now again at least. I downloaded the new beta4 of the iPhone SDK (build 1071 of XCode). I've been having the same problem in many of my projects ever since installing the firs

Re: NSBitmapImageRep bitmapData contains all zeroes?

2008-04-25 Thread Jean-Daniel Dupas
What do you want to do with you captured images ? Just display them or record them ? If you just want to display it, you should use an NSOpenGLView and draw the CVBuffer or the CIImage directly. If this is for recording or processing the pixels (without CoreImage), you can try to generate a

Re: Weird Problem With CGImage

2008-04-25 Thread Jean-Daniel Dupas
Using CGImageRef is not a realiable way to access pixel data of an image. You should create a CGBitmapContextCreate() instead and draw the part you want in this context. http://developer.apple.com/qa/qa2007/qa1509.html Le 25 avr. 08 à 16:51, Carter R. Harrison a écrit : This bug in my

Re: Weird Problem With CGImage

2008-04-25 Thread Jean-Daniel Dupas
Le 25 avr. 08 à 18:12, David Duncan a écrit : On Apr 25, 2008, at 7:51 AM, Carter R. Harrison wrote: This bug in my code has been driving me nuts for days, but I have finally isolated the issue - only problem now is I don't understand what I'm doing wrong. I have a CGImage that I want to

Re: Screen Recording APIs ?

2008-04-25 Thread Jean-Daniel Dupas
Le 25 avr. 08 à 20:35, Marcio Castilho a écrit : I am new to programming in Mac OSX. I need to do a very simple screen recording application similar to uShow, ScreenFlow and others, but with very basic settings and simple features. I would like some directions on where can I get some refer

Re: How do I use a WebView in a modal dialog?

2008-04-25 Thread Jean-Daniel Dupas
Le 25 avr. 08 à 21:00, David Sinclair a écrit : On Apr 25, 2008, at 08:35:53, David Springer wrote: Folks, How can I use a WebView in a modal dialog? I understand that WebViews don't work in the modal runloop mode, so is there a way to fake this? Run my own nextEventMatchingMask: loop (

Re: how to manage multiple non-document windows

2008-04-25 Thread Jean-Daniel Dupas
Le 25 avr. 08 à 21:06, Steve Christensen a écrit : On Apr 24, 2008, at 5:01 PM, Ken Thomases wrote: On Apr 24, 2008, at 6:39 PM, Steve Christensen wrote: I'm rewriting an old legacy app in Cocoa and have run into a stumbling block. The app is supposed to support having multiple windows op

Re: how to manage multiple non-document windows

2008-04-25 Thread Jean-Daniel Dupas
Le 26 avr. 08 à 01:44, Steve Christensen a écrit : On Apr 25, 2008, at 12:45 PM, Erik Verbruggen wrote: On 25 Apr 2008, at 20:06, Steve Christensen wrote: I put both the window and NSWindowController subclass in MainMenu.nib since some of the menu items control behavior in the window (an

Re: NSBezier Artifacts

2008-04-26 Thread Jean-Daniel Dupas
The "rect" arguments is not you whole frame. This is only the rect that need to be redraw. It may be smaller than your view. If you want to fill you view using a rounded rect, so you have to use [self bounds] instead of rect. Le 26 avr. 08 à 07:18, Aaron Wallis a écrit : I've been having a

Re: Not showing window at Document-Based application

2008-04-26 Thread Jean-Daniel Dupas
Le 26 avr. 08 à 11:57, Jere Gmail a écrit : I have created Document-Based application. The problem is that every time I run the application an empty document is created. I don't want this to happen. I want the user to have to open a new one. How can I disable this behaviour? Implements th

Re: Calculating file size

2008-04-27 Thread Jean-Daniel Dupas
Le 27 avr. 08 à 06:33, Jens Alfke a écrit : On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote: I was wondering what was the best way to calucate folder size with cocoa? I was able to do this but it does not include resource forks: I think you'll need to drop down to a lower-level API to get the

Re: Calculating file size

2008-04-27 Thread Jean-Daniel Dupas
Le 27 avr. 08 à 15:02, Laurent Cerveau a écrit : On Apr 27, 2008, at 6:33 AM, Jens Alfke wrote: On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote: I was wondering what was the best way to calucate folder size with cocoa? I was able to do this but it does not include resource forks: I think y

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-27 Thread Jean-Daniel Dupas
Le 27 avr. 08 à 20:27, Mohsan Khan a écrit : Hi, I'm trying to call an AppleScript from my Cocoa application, I've copied the code from http://developer.apple.com/technotes/tn2006/tn2084.html but my application will crash once called. I did change the script to: NSAppleScript* scriptObje

Re: Leopard on PPC

2008-04-28 Thread Jean-Daniel Dupas
An invalid byte swap may result in allocation of a big memory block (ie. malloc(mySize) and "mySize" was not swapped). This is the kind of issues you may have between Intel and PPC version. Is it possible that this problem occurs somewhere in your code ? Le 28 avr. 08 à 09:48, Lorenzo a écr

Re: Leopard on PPC

2008-04-28 Thread Jean-Daniel Dupas
Sorry for the noise. I should read the whole topics before replying. If it works on Tiger, this is not a swapping issus. Le 28 avr. 08 à 09:58, Jean-Daniel Dupas a écrit : An invalid byte swap may result in allocation of a big memory block (ie. malloc(mySize) and "mySize" was n

Re: Calculating file size

2008-04-28 Thread Jean-Daniel Dupas
Le 28 avr. 08 à 11:27, Gerriet M. Denkmann a écrit : On 28 Apr 2008, at 07:44, [EMAIL PROTECTED] wrote: Others have answered with good suggestions for other APIs, but I will point out for the record that you can do it in Cocoa, too, because the file system has a path-based mechanism in w

Re: flat_namespace?

2008-04-28 Thread Jean-Daniel Dupas
otool -hv library.dylib I don't know if the "flags" section of the output contains something when linking using flat name space, but it echo TWOLEVEL if the library uses two level name space. Le 28 avr. 08 à 18:44, David Springer a écrit : Folks, Is there a way to tell if a lib/dylib wa

Re: Calculating file size

2008-04-29 Thread Jean-Daniel Dupas
Shouldn't be !isDirectory ? if (isDirectory) { FileInfo *fileInfo = (FileInfo *) &info.finderInfo; fileHFSType = [NSNumber numberWithUnsignedLong:fileInfo->fileType]; fileCreator = [NSNumber numberWithUnsignedLong:fileInfo->fileCreator];

Re: Cache Class review (low priority)

2008-04-30 Thread Jean-Daniel Dupas
I think you may read the Cocoa Collection documentation. The NSDictionary class may interess you. Le 30 avr. 08 à 15:50, Western Botanicals a écrit : This is one of my first projects in Cocoa, but I probably got a lot of things wrong, so if I can get a review of this class that would help

Re: do i have to convert each unichar on ppc and intel

2008-04-30 Thread Jean-Daniel Dupas
Le 30 avr. 08 à 17:24, Nick Rogers a écrit : hi, I'm using: [NSString stringWithCharacters:gptEntry.partName length:36]; where gptEntry struct have been filled in from the disk. The string shows correct on ppc, while shows garbage on intel. So how can I convert an entire such unichar array to c

Re: Xcode debugger quality

2008-05-02 Thread Jean-Daniel Dupas
No, but it remain the "Load symbols lazily" preference that should be disabled. It may solve some "debugger does not break" issues. Le 2 mai 08 à 06:36, Scott Ribe a écrit : This may not apply anymore It doesn't even exist in Xcode 3. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes

Re: drawing in a separate thread

2008-05-02 Thread Jean-Daniel Dupas
You can have a look at DistributedObject. I think you can publish a drawer object in your drawing thread and then, just call draw fro your main thread. To be more generic, a worker thread may do this: - start and setup thread. - create IPC objects. (publish an object using Distributed object

Re: drawing in a separate thread

2008-05-02 Thread Jean-Daniel Dupas
Le 2 mai 08 à 17:27, Jens Alfke a écrit : On 2 May '08, at 4:20 AM, Jean-Daniel Dupas wrote: You can have a look at DistributedObject. I think you can publish a drawer object in your drawing thread and then, just call draw fro your main thread. DO might be overkill for this sce

Re: Graphics seen when volume is modified.

2008-05-02 Thread Jean-Daniel Dupas
Le 2 mai 08 à 23:00, Kyle Sluder a écrit : On Fri, May 2, 2008 at 4:51 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: You can get rounded corners, etc. by setting the background color for the window to be an image of the color and shape you want or by having the content view define the shap

Re: Graphics seen when volume is modified.

2008-05-03 Thread Jean-Daniel Dupas
And after that, you can either uses NSImage but it's not really nice, or create a NSView subclass to do your drawing. I had to do this myself and want to share some knowledge. Actually, the notification windows is 161 points wide, and 156 points high (with 1 point = 1 pixel when use scale fa

Re: drawing in a separate thread

2008-05-03 Thread Jean-Daniel Dupas
Le 3 mai 08 à 13:36, Duncan a écrit : On May 3, 2008, at 5:00 AM, Graham Cox <[EMAIL PROTECTED]> wrote: One thing I realised after the previous posting is that the performance hit I'm seeing is because unlike the usual drawRect: case, I wasn't doing any clipping to the update area, so the

Re: drawing in a separate thread

2008-05-03 Thread Jean-Daniel Dupas
Le 3 mai 08 à 14:52, Graham Cox a écrit : On 3 May 2008, at 9:36 pm, Duncan wrote: If you're going to do your drawing in a separate thread, you'll need to remember WHAT to draw. I wouldn't call it "hackish", I'd call it the cost of doing business that way. If you implement a job queue,

Re: drawing in a separate thread

2008-05-03 Thread Jean-Daniel Dupas
Le 3 mai 08 à 15:30, Graham Cox a écrit : Cocoa already coalesces updates in this way, so when drawRect: is called, the list of rects is the merged list. Cocoa already do this for synchronous drawing, and after each drawRect: call it resets the list. If the drawRect: method is call faste

Re: Converting XML to NSDictionary

2008-05-03 Thread Jean-Daniel Dupas
Le 3 mai 08 à 17:01, Mr. Gecko a écrit : How would I convert XML to NSDictionary so I can read it. Here is an example of how my XML file looks like http://www.example.com/file1"; size="522656" name="File Number 1"/> http://www.example.com/file1"; size="4533" name="File Number 2"/>

Re: most efficient way to string CIFilters together?

2008-05-03 Thread Jean-Daniel Dupas
Le 3 mai 08 à 20:06, Josh Burnett a écrit : In a photography app, I'm chaining a series of CIFilters together to process the image. I'm able to do the chain just fine, but I'm only using a few filters at the moment. As I increase the length of this chain, am I going to run into performan

Re: Real time video analysis app under Cocoa

2008-05-03 Thread Jean-Daniel Dupas
Le 3 mai 08 à 19:49, Yreaction JP a écrit : Hi there I have a few questions about what way should I choose for develop an real time video analysis app. I already have a solid knowledge of image analysis and objetive c aswell. The basic idea to start with this is an app that get a real ti

Re: Proxy Window of another

2008-05-03 Thread Jean-Daniel Dupas
Le 3 mai 08 à 23:45, Daniel Rampanelli a écrit : Hi, I was thinking wheter it is possible to create a sort of "proxy" window which displays the content of another. Of course, the further step would be to also pass events from the proxied window to the source one. Is this even possible?

Re: Proxy Window of another

2008-05-03 Thread Jean-Daniel Dupas
Le 4 mai 08 à 00:30, Jean-Daniel Dupas a écrit : Le 3 mai 08 à 23:45, Daniel Rampanelli a écrit : Hi, I was thinking wheter it is possible to create a sort of "proxy" window which displays the content of another. Of course, the further step would be to also pass events from t

Re: List Running apps and windows

2008-05-03 Thread Jean-Daniel Dupas
Le 4 mai 08 à 01:09, Steve Christensen a écrit : On May 3, 2008, at 3:52 PM, Jere Gmail wrote: I want to list all the running apps and their windows. Running apps is easy with [ws launchedApplications] but I cant find a way for listing their windows. I have tried NSWindowList(win_count,arr_wi

Re: Event loop in a secondary thread? Nibless Cocoa?

2008-05-04 Thread Jean-Daniel Dupas
Le 4 mai 08 à 05:18, Jens Alfke a écrit : On 3 May '08, at 8:13 PM, Bruce Sherwood wrote: Thanks! I'm really glad to hear that this is a known problem, and that there are solutions, even if it is "pretty tricky stuff". Can you or someone else point me to a sample piece of code that could

Re: List Running apps and windows

2008-05-04 Thread Jean-Daniel Dupas
tringRef)path); But it wont do anything, no matter if I relaunch or not. Guesses? On Sun, May 4, 2008 at 1:17 AM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: Le 4 mai 08 à 01:09, Steve Christensen a écrit : On May 3, 2008, at 3:52 PM, Jere Gmail wrote: I want to list all the running

Re: Saving as xml

2008-05-05 Thread Jean-Daniel Dupas
Le 5 mai 08 à 19:55, Jens Alfke a écrit : On 5 May '08, at 10:45 AM, John Joyce wrote: What's the best method to save a document as xml? Should NSKeyedArchiver be doing this? My document and its objects are very simple, they can easily be nothing more than BOOLs and NSStrings (as keys).

Re: Blob Detection with Core Image

2008-05-06 Thread Jean-Daniel Dupas
You have to properly configure your QTVideoContext to get this. By default, most of the CoreVideo sample code uses QTOpenGLTextureContextCreate(), and so, you get CVOpenGLTextureRef. If you want to retreive CVPixelBuffers, you have to create your QTVisualContext using the QTPixelBufferContext

Re: packagemaker won't run foundation tool

2008-05-07 Thread Jean-Daniel Dupas
Le 7 mai 08 à 09:23, Marc Lohse a écrit : Hello, i am not sure whether this is the right place to ask so please forgive me if this question is off topic for the cocoa-dev list, You're right, it's not the right place. Try the Installer-dev list. http://lists.apple.com/mailman/listinfo/insta

Re: How to convert UInt8 array to NSString

2008-05-07 Thread Jean-Daniel Dupas
More modern and more Cocoa way? You mean something like this + [NSString stringWithContentsOfFile:usedEncoding:error:] ;-) «Discussion This method attempts to determine the encoding of the file at path.» Le 7 mai 08 à 19:33, Gary L. Wade a écrit : If you're interested in determining the bes

Re: NSWindow Centering Problem

2008-05-07 Thread Jean-Daniel Dupas
Le 7 mai 08 à 20:59, Philip Bridson a écrit : Hi there, Can anyone tell me why when I use [MyWindow center] the window ends up about an inch from the top of the screen? I thought this method is meant to center the window. Is there something I am doing wrong? Many thanks, Phil. Reading

Re: How to convert UInt8 array to NSString

2008-05-07 Thread Jean-Daniel Dupas
What make you think this function assumes an exact encoding ? This method is not the same than +[NSString stringWithContentsOfFile:encoding:error:]. The method +stringWithContentsOfFile:usedEncoding:error: returns the sniffed encoding by reference using the second argument. At least that'

Re: NSWindow Centering Problem

2008-05-07 Thread Jean-Daniel Dupas
AFAK, there is no other method than center to center the window on screen, but doing one that really center the window is not very difficult. @implementation NSWindow (TrueCenter) - (void)trueCenter { NSRect frame = [self frame]; NSRect *screen = [[self screen] frame];

Re: 8 Digit random number

2008-05-07 Thread Jean-Daniel Dupas
Le 7 mai 08 à 22:54, Seth Willits a écrit : On May 7, 2008, at 1:50 PM, Mr. Gecko wrote: Hello I am needing to find out how to do an 8 digit random number in cocoa. If there are no way than I can use random number from 1000 to in applescript and receive the retuned value. Us

Re: Undefined lookup, ObjC, and 64-bit

2008-05-12 Thread Jean-Daniel Dupas
Unlike the 32 bits runtime, the 64 bits runtime respects class symbols visibility. If you do not export the class symbol, you cannot use it from an other binary (just like with C or C++ functions and classes). Actually, I'm conditionnaly using the folowing attribute to solve this issue (IIR

Re: list open application windows

2008-05-13 Thread Jean-Daniel Dupas
Le 13 mai 08 à 08:01, Jens Alfke a écrit : On 12 May '08, at 8:15 PM, Ben Lowndes wrote: I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. Nothing personal, but people seem to ask this question her

Re: Fullscreen on secondary displays

2008-05-13 Thread Jean-Daniel Dupas
Switch to fullscreen in a couple of line and without capturing display ('uiView' is your custom view with custom drawing code): SetSystemUIMode(kUIModeAllSuppressed, kUIOptionAutoShowMenuBar); NSScreen *screen = [[uiView window] screen]; NSWindow *window = [[NSWindow alloc] initWith

Re: Fullscreen on secondary displays

2008-05-14 Thread Jean-Daniel Dupas
! regards, dennis On Tue, May 13, 2008 at 6:30 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: Switch to fullscreen in a couple of line and without capturing display ('uiView' is your custom view with custom drawing code): SetSystemUIMode(kUIModeAllSuppressed, kUIOptionAut

Re: Launching Cocoa Application externally

2008-05-14 Thread Jean-Daniel Dupas
You can read the crash log to see what goes wrong. (/Applications/ Utilities/Console.app) Le 14 mai 08 à 15:48, Yann Disser a écrit : When I launch my Cocoa application from Finder instead of from within XCode, it reports a crash. All my other Projects seem to work well from outside XCode.

Re: Create NSStrings from a mapped NSData object - safe?

2008-05-14 Thread Jean-Daniel Dupas
Le 14 mai 08 à 16:32, Mike Fischer a écrit : Am 14.05.2008 um 15:32 schrieb Michael Vannorsdel <[EMAIL PROTECTED]>: I was going to with sample code to show it, but I didn't see any documentation that said file locks and link counts were guaranteed. See man unlink: "[...] If that decrement

Re: Cocoa equivalent of std::vector ?

2008-12-14 Thread Jean-Daniel Dupas
Le 14 déc. 08 à 13:34, Guillaume Laurent a écrit : Hi all, I need to create an array of values of a specific type, and I'd prefer to have it as a set of values rather than pointer to values (mostly performance reasons), so not an NSMutableArray. I couldn't find anything in Cocoa to do th

Re: Cocoa equivalent of std::vector ?

2008-12-14 Thread Jean-Daniel Dupas
Le 14 déc. 08 à 14:42, Guillaume Laurent a écrit : On Dec 14, 2008, at 13:45 , Jean-Daniel Dupas wrote: Le 14 déc. 08 à 13:34, Guillaume Laurent a écrit : Hi all, I need to create an array of values of a specific type, and I'd prefer to have it as a set of values rather than po

Re: Unexpected behaviour with autorelease pool

2008-12-14 Thread Jean-Daniel Dupas
Le 14 déc. 08 à 22:36, Filip van der Meeren a écrit : I think I have found the answer to your question; when executing the following code, I get a few strange results... NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSNumber *n0 = [NSNumber numberWithInt:1]; NSLog(@"n0: %d",

Re: encoding/decoding selectors?

2008-12-15 Thread Jean-Daniel Dupas
Le 15 déc. 08 à 14:47, Karan, Cem (Civ, ARL/CISD) a écrit : I need to encode/decode an object which has a selector as one of its instance variables. I know that NSCoder doesn't directly support this, so my current way of doing things is the following: - (void) encodeWithCoder:(NSCoder *)

Re: View Swapping

2008-12-15 Thread Jean-Daniel Dupas
Le 15 déc. 08 à 18:49, Carmen Cerino Jr. a écrit : Howdy, Are there any guides regarding when it is appropriate to use this technique? Thanks, Carmen Generaly people prefere to use tabless tabview. ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: More - Safari Download Security Alerts

2008-12-15 Thread Jean-Daniel Dupas
Le 15 déc. 08 à 19:04, Bill Bumgarner a écrit : On Dec 15, 2008, at 8:53 AM, Dave wrote: Why doesn't drag and drop work? AFAIK it does work, but my boss wants to be able to display a "T&C" page etc. and he wants an installer. Also it isn't a straight forward .app file, it's an App file t

Re: proper way to release a static NSMutableDictionary?

2008-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 08 à 05:56, Andy Lee a écrit : On Dec 15, 2008, at 6:27 PM, John Michael Zorko wrote: I'm not concerned about the contents per se -- i'm concerned about releasing something I declared as static, just to create it again later. Creating and re-creating objects is in itself nothin

Re: Write to file.

2008-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 08 à 13:47, Macarov Anatoli a écrit : I have admin rights. But I can't use NSUserDefaults because upon starting system in login window I'm not in user account, and there the function doesn't work.. After authorization and login in user account the function will work because det

Re: Sublclassing NSThread

2008-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 08 à 18:29, Brad O'Hearne a écrit : Hello, I am trying to create an NSThread subclass which completely wraps the desired behavior of the thread execution. Now typically when creating a new thread instance, it seems one will use the initWithTarget:selector:object initializer to

Re: More - Safari Download Security Alerts

2008-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 08 à 20:02, Dave a écrit : Hi, I looked at xattr but can't find a man page and couldn't seem to find much about it anywhere. I did a xattr -l CleanUp.App, and it produced a dump of the data and resource forks. I can't see any attribute names. Is there any docs on xattr? Or bet

Re: Sublclassing NSThread

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 04:27, Michael Ash a écrit : On Tue, Dec 16, 2008 at 5:19 PM, Bradley S. O'Hearne wrote: All, Thanks to everyone for the replies. In my code, I made an error -- overrode the start method rather than the main method. After I overrode the start method, everything worked gre

Re: Sublclassing NSThread

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 16:29, Michael Ash a écrit : On Wed, Dec 17, 2008 at 4:49 AM, Jean-Daniel Dupas wrote: Le 17 déc. 08 à 10:32, Jean-Daniel Dupas a écrit : And before you go off using NSOperationQueue, you should be aware that it's broken on Leopard, as described in this thread:

Re: Sublclassing NSThread

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 10:32, Jean-Daniel Dupas a écrit : And before you go off using NSOperationQueue, you should be aware that it's broken on Leopard, as described in this thread: http://www.cocoabuilder.com/archive/message/cocoa/2008/10/30/221452 We already discuss this issues, and I

Re: More - Safari Download Security Alerts

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 16:19, Dave a écrit : Hi Matt, Thanks so much for this. I was using PM version 3.0.2, I hadn't realized that there was a new version of XCode available, for some reason I thought it would auto-magically detect a new version and offer to update itself. Anyway I downloaded

Re: More - Safari Download Security Alerts

2008-12-17 Thread Jean-Daniel Dupas
Le 17 déc. 08 à 16:40, Dave a écrit : On 17 Dec 2008, at 15:29, Jean-Daniel Dupas wrote: Le 17 déc. 08 à 16:19, Dave a écrit : Hi Matt, Thanks so much for this. I was using PM version 3.0.2, I hadn't realized that there was a new version of XCode available, for some reason I th

Re: UNIX signals

2008-12-18 Thread Jean-Daniel Dupas
Le 18 déc. 08 à 04:55, Michael Ash a écrit : On Wed, Dec 17, 2008 at 2:32 PM, Greg Parker wrote: On Dec 16, 2008, at 7:22 PM, Michael Ash wrote: On Tue, Dec 16, 2008 at 8:02 PM, Chris Idou wrote: Is there any Cocoa and/or Carbon interface to UNIX signals? Nope. It's pretty easy to s

Re: Optimizing NSRectFill

2008-12-20 Thread Jean-Daniel Dupas
Le 20 déc. 08 à 15:22, Oleg Krupnov a écrit : Here is how I arrived at the conclusion that NSRectFill is the bottleneck. (I cannot show the code because it's spread over objects). The slowness of redraw is only noticeable when I drag the mouse, e.g. to resize an object in the custom view. I se

Re: Optimizing NSRectFill

2008-12-20 Thread Jean-Daniel Dupas
Sorry for the blank previous mail. Try to call NSFillRect with the rect pased as parameter in drawRect: and before applying the scaling method. As the rect parameter contains the invalid rect in screen coordinates, you don't have to transform it before filling the rect with white. Le 20 dé

Re: Optimizing NSRectFill

2008-12-20 Thread Jean-Daniel Dupas
Le 20 déc. 08 à 15:33, Jean-Daniel Dupas a écrit : Sorry for the blank previous mail. Try to call NSFillRect with the rect pased as parameter in drawRect: and before applying the scaling method. As the rect parameter contains the invalid rect in screen coordinates, you don't ha

Re: Optimizing NSRectFill

2008-12-20 Thread Jean-Daniel Dupas
Le 20 déc. 08 à 21:14, Michael Ash a écrit : On Sat, Dec 20, 2008 at 1:51 PM, Kyle Sluder wrote: On Sat, Dec 20, 2008 at 12:18 PM, Michael Ash wrote: A simple way to do this is to avoid calling setNeedsDisplay: (or its friends) directly from your event handler. Instead start a timer wit

Re: Optimizing NSRectFill

2008-12-20 Thread Jean-Daniel Dupas
Le 20 déc. 08 à 22:47, Jean-Daniel Dupas a écrit : Le 20 déc. 08 à 21:14, Michael Ash a écrit : On Sat, Dec 20, 2008 at 1:51 PM, Kyle Sluder wrote: On Sat, Dec 20, 2008 at 12:18 PM, Michael Ash wrote: A simple way to do this is to avoid calling setNeedsDisplay: (or its friends

Re: Reliable way to capitalize camel-case strings? [SOLVED]

2008-12-22 Thread Jean-Daniel Dupas
Le 22 déc. 08 à 14:48, Michael Ash a écrit : On Mon, Dec 22, 2008 at 8:25 AM, Graham Cox wrote: I ended up writing this category method. I guess it will be reliable, as it's making no assumptions about encoding. Actually it is! It assumes that the first character is the first "characte

Re: NSStream APIs

2008-12-22 Thread Jean-Daniel Dupas
Le 22 déc. 08 à 19:48, Alex Kac a écrit : Does anyone have a good tutorial on how to use these? I have to admit to being stumped. I have some pre-written code written using NSData to send data using CFNetwork and ASyncSocket code and I just can't seem to figure out how to get the file st

Re: NSString property: copy or retain?

2008-12-22 Thread Jean-Daniel Dupas
Le 22 déc. 08 à 23:04, Debajit Adhikary a écrit : Let's say I have a class called SomeClass with a string property name: @interface SomeClass : NSObject{ NSString* name; } @property (nonatomic, retain) NSString* name; @end I understand that name may be assigned a NSMutableString in which

Re: Setting Caps Lock state from the application

2008-12-23 Thread Jean-Daniel Dupas
Le 22 déc. 08 à 13:41, Girish Kolari a écrit : Hi All We have an application in which we post keyboard events using the API CGError CGPostKeyboardEvent (CGCharCode keyChar, CGKeyCode virtualKey, boolean_t keyDown); API works fine for all the events. However, we are facing an issue with Ca

Re: When is the - (id)init method not called for an Objective-C class?

2008-12-30 Thread Jean-Daniel Dupas
Le 30 déc. 08 à 09:29, Andrew Farmer a écrit : On 30 Dec 08, at 00:24, Michael A. Crawford wrote: I have an init method for an NSView sub-class that is never called. Not expert enough with Objective-C to understand why? Anyone have a clue? The designated initializer for NSView is initWi

Re: A Mac App & helper NSStatusItem - how to share preferences

2008-12-30 Thread Jean-Daniel Dupas
Le 30 déc. 08 à 14:37, Michael Ash a écrit : On Mon, Dec 29, 2008 at 4:16 AM, Steve Cronin wrote: Kyle; Thanks for that pointer! Based on the documentation you cited I've now got the reading of NSUserDefaults functioning! In the hopes that it might be useful to someone else, I include

Re: Input Method Kit Sample Code

2008-12-30 Thread Jean-Daniel Dupas
Cocoa documentation has been updated to include "related sample codes" links everywhere (class description, each method documentation, etc…) Just open a IMK class reference, and you can find one: For example, the IMKServer contains a link to the NumberInput_IMKit_Sample. http://developer.a

Re: Making an object release itself?

2008-12-31 Thread Jean-Daniel Dupas
Le 31 déc. 08 à 18:28, Matt Neuburg a écrit : On Wed, 31 Dec 2008 14:28:44 +1100, Jacob Rhoden > said: I'm thinking PostReader class could have a static function that initialises a new PostReader object, tells it to start the work, and then do a [self release] after it has called the callback

Re: Making an object release itself?

2009-01-06 Thread Jean-Daniel Dupas
Le 1 janv. 09 à 20:00, Jim Correia a écrit : On Dec 30, 2008, at 10:28 PM, Jacob Rhoden wrote: Im still learning cocoa, so I have a question about if this is a good idea or a crazy noob mistake. Given the following code can I alter it so that postreader auto releases itself? [...] I'm t

Re: Which language to get started with cocoa development?

2009-01-06 Thread Jean-Daniel Dupas
Le 1 janv. 09 à 20:44, Keary Suska a écrit : On Dec 31, 2008, at 1:22 AM, Achim Domma wrote: I develop software for a living and want to get started with cocoa development just for fun. I'm good at python, C, C++ and C# and have some Ruby knowledge. Now I'm asking myself, which language I

Re: Overlay controls a la iTunes and QuickTime

2009-01-06 Thread Jean-Daniel Dupas
Le 5 janv. 09 à 06:58, Kiel Gillard a écrit : Howdy all, What would be the best way to implement a HUD-like overlay of controls in the same manner as iTunes and QuickTime? These overlays can be seen when playing a video in iTunes 8 or a full screen video in (at least) the free version of

Re: Overlay controls a la iTunes and QuickTime

2009-01-06 Thread Jean-Daniel Dupas
Le 6 janv. 09 à 10:53, Jean-Daniel Dupas a écrit : Le 5 janv. 09 à 06:58, Kiel Gillard a écrit : Howdy all, What would be the best way to implement a HUD-like overlay of controls in the same manner as iTunes and QuickTime? These overlays can be seen when playing a video in iTunes 8 or

Re: Cocoa Client/Server App

2009-01-07 Thread Jean-Daniel Dupas
Le 7 janv. 09 à 14:18, Ammar Ibrahim a écrit : On Wed, Jan 7, 2009 at 2:38 PM, Jason Stephenson wrote: Ammar Ibrahim wrote: The sample you sent is deprecated. This is code from 1992 that uses old networking APIs. And I read a complete book about networking programming in C. But my goal

Re: Programmatically locking user screen

2009-01-07 Thread Jean-Daniel Dupas
Le 7 janv. 09 à 14:46, Jens Bauer a écrit : Hi Ashish, To save you from going down a path you may have to return from: I've used CoreGraphics fullscreen mode, however that's probably not a good approach for you, because if the user is pressing cmd+opt +escape, then the application just quit

Re: Help

2009-01-09 Thread Jean-Daniel Dupas
Maybe this can be a good starting point: http://www.catb.org/~esr/faqs/smart-questions.html Le 9 janv. 09 à 03:11, Parker Logan a écrit : I am new to all this so if any one can help please do. Thank you From: LIL PLO ___

Re: CAD programming.

2009-01-11 Thread Jean-Daniel Dupas
Le 10 janv. 09 à 07:03, Brian Bruinewoud a écrit : Hi, I'm an experienced C++ developer but a relative newbie to Objective- C and Cocoa and am learning my way. I'm porting a program to Mac OS X Cocoa and part of the requirements is a CAD-like functionality. A substantial part of the rest

Re: How to add a -(unsigned long long)unsignedLongLongValue method to NSString

2009-01-11 Thread Jean-Daniel Dupas
Le 11 janv. 09 à 15:41, Adam R. Maxwell a écrit : On Jan 11, 2009, at 1:50 AM, Ken Thomases wrote: On Jan 11, 2009, at 1:28 AM, ewan.dela...@math.unicaen.fr wrote: If you must work character-by-character, use character constants (e.g. >'0' or '9') In that (unlikely) situation, how would

Re: What is the equivalent of a C++ pure-virtual function in Objective-C?

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 03:29, Graham Cox a écrit : On 12 Jan 2009, at 1:20 pm, Michael A. Crawford wrote: I want to force derived classes to implement a given interface without provided a default implementation. Does the concept exist in Objective-C (I'm almost sure it does)? If so, what does

Re: How can i read the "iTunes Library" file?

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 05:27, Andrew Farmer a écrit : On 11 Jan 09, at 13:43, Luca wrote: I'd want to read the contents of the file iTunes stores in ~/Music/ iTunes/iTunes Library in my Cocoa Application. How can i do? You can't; the format isn't documented, and changes frequently. Use the XML

Re: NSWindow With Only Close Button?

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 01:36, Kyle Sluder a écrit : On Sun, Jan 11, 2009 at 7:18 PM, Chunk 1978 wrote: i noticed the window of the OS Install Assistant of Parallels 4.0 only has a close button in the top left corner of the window. i didn't know this was possible. how is this accomplished? I

Re: Security With Show Package Contents?

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 17:00, I. Savant a écrit : On Mon, Jan 12, 2009 at 10:49 AM, I. Savant wrote: The fact is, Apple ALREADY put a highly-effective* system into place: Code signing. A retraction: From the documentation (quoted below), the user can apparently run modified code anyway ...

Re: Getting the network Machine Icon

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 17:56, Sean McBride a écrit : On 1/11/09 2:31 PM, Sandro Noel said: I'm looking for a way to programatically get the machine icon from my servers, just like finder does in the finder. *SNIP*. Any suggestions on where to look?? NSImage. I think it's NSImageNameComputer.

Re: Make the whole view go full screen

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 18:08, Jonathan Selander a écrit : Hi, Is there way to make the whole main windows with all its contents (including a quartz composition) go full screen, and perhaps even scale? If so, how? Thanks See the archives for a bunch of solutions, and pro and cons for each on

Re: Disabled button looks like enabled

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 19:43, Donnie Lee a écrit : So what you're saying is you want a button that doesn't do anything? Exactly. In that case, just don't hook the button's action up to anything... Already did it, just tried to remove this button from system observers to save system resources pu

Re: Disabled button looks like enabled

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 20:24, Donnie Lee a écrit : I am curious to know more about theses "system observers". Can you explain us what is it ? Cocoa observers which sends mouse events, keyboard events etc. Hardware event are received by the kernel that send them to the window server that forw

Re: Release vs. autorelease

2009-01-12 Thread Jean-Daniel Dupas
Le 12 janv. 09 à 20:37, Mohan Parthasarathy a écrit : Hi, In places other than dealloc where memory needs to be released (e.g, reassigning pointer to objects), is there a difference in doing autorelease or release of the object in terms of perfomance etc. ? I can see that the memory is r

Re: Make the whole view go full screen

2009-01-13 Thread Jean-Daniel Dupas
d be? Thanks 12 jan 2009 kl. 21.07 skrev Chunk 1978: personally i've used Carbon for this, but i'm not sure if it's the most standardized way of attaining full screen. check out: SetSystemUIMode(kUIModeAllHidden, 0); and SetSystemUIMode(kUIModeAllSuppressed, 0); On Mon, Ja

<    4   5   6   7   8   9   10   11   12   13   >