Re: Location of the standard Apple icons in IB

2009-01-26 Thread Jean-Daniel Dupas
Le 26 janv. 09 à 11:29, Florian Soenens a écrit : Hi list, i'm working on a 10.4+ app and i use some icon templates like NSPreferencesGeneral, NSUser, etc... The problem is that something like [toolbarItem setImage:[NSImage imageNamed:@"NSPreferencesGeneral"]] only works on 10.5+ My ques

Re: Accessing private members of another object of the same class

2009-01-26 Thread Jean-Daniel Dupas
Le 26 janv. 09 à 15:02, Horst Jäger a écrit : First of all: thank you. You solved my problem. There's no real way to enforce privateness, either in Objective-C or C++. Why not in C++? And why not in Obj-C ? The new runtime (64 bits, non-fragile) declare a symbol for each ivar. Pr

Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare

2009-01-27 Thread Jean-Daniel Dupas
Le 27 janv. 09 à 06:28, Graham Cox a écrit : On 27 Jan 2009, at 4:17 pm, Adam Venturella wrote: Thanks! I knew I was doing to many steps! uint key = *(uint*)&buffer; You will also need to consider byte-ordering if your app or the data could be used on different architectures. If for

Re: How to catch and log EXC_BAD_ACCESS?

2009-01-27 Thread Jean-Daniel Dupas
Le 27 janv. 09 à 06:03, Slava Pestov a écrit : On Mon, Jan 26, 2009 at 10:43 PM, Michael Ash wrote: Actually it's pretty easy to avoid exiting due to EXC_BAD_ACCESS, just install a signal handler for SIGSEGV. In my experience, setting a handler for SIGSEGV is problematic because the cras

Re: How to catch and log EXC_BAD_ACCESS?

2009-01-27 Thread Jean-Daniel Dupas
Le 27 janv. 09 à 06:48, Bill Bumgarner a écrit : On Jan 26, 2009, at 8:43 PM, Michael Ash wrote: Actually it's pretty easy to avoid exiting due to EXC_BAD_ACCESS, just install a signal handler for SIGSEGV. Of course, doing something rational in such a signal handler is ever so slightly non-

Re: Not Resolving Aliases

2009-01-27 Thread Jean-Daniel Dupas
Le 27 janv. 09 à 12:03, Gregory Weston a écrit : Scott Ribe wrote: I have given up on NSWorkspace, LaunchServices and now send the path via Distributed Objects. Hey, that surprises me ;-) Give what you said, my next attempt would have been constructing an open Apple Event... (Don't know i

Re: Not Resolving Aliases

2009-01-27 Thread Jean-Daniel Dupas
Le 27 janv. 09 à 12:25, Jean-Daniel Dupas a écrit : Le 27 janv. 09 à 12:03, Gregory Weston a écrit : Scott Ribe wrote: I have given up on NSWorkspace, LaunchServices and now send the path via Distributed Objects. Hey, that surprises me ;-) Give what you said, my next attempt would

Re: Quick question on Current Active application Notification

2009-01-27 Thread Jean-Daniel Dupas
Le 27 janv. 09 à 12:37, rajesh a écrit : Hi all, For my application to know whats the current active application ( for each time there's a switch between application ) do I have to "Enable access for assistive devices" ? and then proceed with AX. API's ? Any other solution or worka

Re: Is there a more efficient way to get the first 4 bytes off a NSInputStream to compare

2009-01-27 Thread Jean-Daniel Dupas
Le 27 janv. 09 à 23:52, Michael Ash a écrit : On Tue, Jan 27, 2009 at 5:15 PM, William Jon Shipley wrote: Will thanks for the heads up, for my purposes this time around, the input stream will be coming in off the file system, but I did not want to load the whole thing into an NSData object

Re: NSTask Leaking...

2009-01-29 Thread Jean-Daniel Dupas
Le 29 janv. 09 à 22:20, Jeremy Pereira a écrit : On 29 Jan 2009, at 19:33, Mr. Gecko wrote: I'm just going to use sscrypto framework for it... If a malicious person can replace an executable with his own, he can probably also replace a framework... Why using a library when the libSys

Re: NSTask Leaking...

2009-01-29 Thread Jean-Daniel Dupas
I implement it? is there any example applications out there? On Jan 29, 2009, at 3:35 PM, Jean-Daniel Dupas wrote: Le 29 janv. 09 à 22:20, Jeremy Pereira a écrit : On 29 Jan 2009, at 19:33, Mr. Gecko wrote: I'm just going to use sscrypto framework for it... If a malicious p

Re: Is there any Objective C supported code review tool?

2009-01-30 Thread Jean-Daniel Dupas
Le 30 janv. 09 à 13:30, Ashish Tiwari a écrit : Hi All, Please name me code review tool (Freeware preferred) that is commonly used by Mac/ObjectiveC/XCode developer community. There is the "as-yet-unnamed clang static analyzer" that can help you to find common error. It's not full

Re: CGFloat and 64 Bit

2009-02-09 Thread Jean-Daniel Dupas
Le 9 févr. 09 à 06:37, Rob Keniger a écrit : On 08/02/2009, at 9:52 PM, Gerriet M. Denkmann wrote: When I build a Cocoa Project with 32/64 bit, this line gets a warning: NSSize a = NSMakeSize( 11.2, 22.4); which went away using: NSSize a = NSMakeSize( (CGFloat)11.2, (CGFloa

Re: CGFloat and 64 Bit

2009-02-09 Thread Jean-Daniel Dupas
Le 9 févr. 09 à 09:50, Rob Keniger a écrit : On 09/02/2009, at 6:33 PM, Jean-Daniel Dupas wrote: NSSize a = NSMakeSize( 11.2f, 22.4f); The "f" suffix is a hint to the compiler that it's a float value. A very bad idea as it would force usage of float in 64bits applicatio

Re: CGFloat and 64 Bit

2009-02-09 Thread Jean-Daniel Dupas
Le 9 févr. 09 à 10:14, Rob Keniger a écrit : On 09/02/2009, at 7:07 PM, Jean-Daniel Dupas wrote: Which warning flag have you enabled to have this warning. I don't see it by default ? Hmm, I think it might be "Implicit Conversion to 32 bit type" (GCC_WARN_64_TO_32

Re: CGFloat and 64 Bit

2009-02-09 Thread Jean-Daniel Dupas
Le 9 févr. 09 à 19:04, Sean McBride a écrit : On 2/9/09 11:59 AM, Jean-Daniel Dupas said: Hmm, I think it might be "Implicit Conversion to 32 bit type" (GCC_WARN_64_TO_32_BIT_CONVERSION). IMHO, this flag is recommended only to compile 64 bits code. On 32 bits arch, as you saw, m

Re: NSScreen order?

2009-02-10 Thread Jean-Daniel Dupas
Le 10 févr. 09 à 17:23, Michael Ash a écrit : On Tue, Feb 10, 2009 at 10:31 AM, Jonathan Hendry wrote: Is there any way to predict how the displays will be numbered? Or to force the Mimo to be screen 3? (I'd rather not add code to the app to account for my toy monitor.) I realize this c

Re: Objective-C question

2009-02-10 Thread Jean-Daniel Dupas
Le 10 févr. 09 à 18:33, I. Savant a écrit : On Tue, Feb 10, 2009 at 12:26 PM, Mike Abdullah wrote: Read the documentation on -isKindOfClass: again. It does exactly what you want. -isMemberOfClass: performs the more specific test of excluding subclasses. In addition, a common gotcha (for

Re: ProcessInformationCopyDictionary

2009-02-11 Thread Jean-Daniel Dupas
Le 11 févr. 09 à 11:43, Trygve Inda a écrit : I call ProcessInformationCopyDictionary (&psn, kProcessDictionaryIncludeAllInformationMask); but if the application has moved since it was launched, the result of this call in the CFBundleExecutable and BundlePath keys is wrong. The values co

Re: ProcessInformationCopyDictionary

2009-02-11 Thread Jean-Daniel Dupas
Le 11 févr. 09 à 12:54, Trygve Inda a écrit : I think it exists a standard Apple Event to retrieve a process version. (get «vers») But you can also add a custom "get version" Apple Event handler to your helper and use it to retrieve the version from your pref pane. Hmmm... It seems keyAEV

Re: ProcessInformationCopyDictionary

2009-02-11 Thread Jean-Daniel Dupas
Le 11 févr. 09 à 12:46, Trygve Inda a écrit : I think it exists a standard Apple Event to retrieve a process version. (get «vers») But you can also add a custom "get version" Apple Event handler to your helper and use it to retrieve the version from your pref pane. This works great for fu

Re: newbie question on creating .png files

2009-02-12 Thread Jean-Daniel Dupas
Le 12 févr. 09 à 16:31, Smith, Steven (MCP) a écrit : Hi folks, I'm relatively new to Cocoa and need some direction on creating .png files. I need to create 365 png files (one for each day of the year) to be used as tags by other folks (eg "JAN01.png" "JAN2.png"..."DEC31.png"). I think

Re: Window Max Zoom Size

2009-02-13 Thread Jean-Daniel Dupas
Le 13 févr. 09 à 20:15, Ken Thomases a écrit : On Feb 13, 2009, at 1:06 PM, Anthony Smith wrote: I'm surprised there isn't a maxZoomSize or something. This doesn't look like it deals with zoom just resizing in general. I'm new to Mac development so I could just be missing something. Thanks

Re: NSRunLoop / CFRunLoop

2009-02-13 Thread Jean-Daniel Dupas
Le 13 févr. 09 à 21:54, Alexander Cohen a écrit : Hi, Not sure if this is the right place to ask since my question is about CFRunLoop, not Cocoa but CoreFoundation. If not, please direct me to the right list. I'm looking for a way to get the main CFRunLoop on tiger. On leopard, there i

Re: Getting better compression

2009-02-16 Thread Jean-Daniel Dupas
Le 16 févr. 09 à 10:51, Graham Cox a écrit : I have a script that runs during my distribution build that compresses my app using zip. If I use the Finder's "Compress" command I get almost twice as much compression. Isn't the Finder using zip? If so, what command-line arguments would give m

Re: Getting better compression

2009-02-16 Thread Jean-Daniel Dupas
Le 16 févr. 09 à 11:53, Graham Cox a écrit : On 16 Feb 2009, at 9:48 pm, Jean-Daniel Dupas wrote: man zip ? -# Regulate the speed of compression using the specified digit #, where -0 indicates no compression (store all files), -1 indicates the fastest com- pression

Re: Getting better compression

2009-02-16 Thread Jean-Daniel Dupas
Le 16 févr. 09 à 11:57, Graham Cox a écrit : On 16 Feb 2009, at 9:53 pm, Graham Cox wrote: man zip ? -# Regulate the speed of compression using the specified digit #, where -0 indicates no compression (store all files), -1 indicates the fastest com- pression method (le

Re: NSTimer Question

2009-02-16 Thread Jean-Daniel Dupas
Le 16 févr. 09 à 13:44, Andreas Grosam a écrit : Hello, how does a NSTimer object that has been setup with a repeating time interval calculate the time when it fires an event? There may be two possibilities: Say, the initial time is at t0, the interval is T, and the time when it fires t

Re: Converting .wav files to MP3

2009-02-18 Thread Jean-Daniel Dupas
QuickTime (and OS X) does not provide an MP3 encoder (for licensing issue). The only provided Mac OS X MP3 encoder is iTunes. Le 18 févr. 09 à 10:43, Mike Abdullah a écrit : You almost certainly want QTKit. Read up on it in the documentation. On 18 Feb 2009, at 09:36, Anshul jain wrote: I

Re: Running a timer on a separate thread

2009-02-20 Thread Jean-Daniel Dupas
Le 20 févr. 09 à 01:42, Ken Thomases a écrit : On Feb 19, 2009, at 6:26 PM, Dave DeLong wrote: We've got an app that splits off two threads: one to play some background music, and the other to count the beats that have passed so far. We're doing beat counting with a timer (we know the bp

Re: Source code for Chess?

2009-02-21 Thread Jean-Daniel Dupas
Le 21 févr. 09 à 16:00, Christopher Nagel a écrit : Anyone have a copy of the old Chess example? I forgot its source was discontinued. Thanks, Chris Really ? http://www.opensource.apple.com/darwinsource/10.5.6/Chess-109.0.3/ ___ Cocoa-dev mai

Re: Memory Management and @synthesized accessors

2009-02-21 Thread Jean-Daniel Dupas
Le 21 févr. 09 à 19:39, Stuart Malin a écrit : I've seen the idiom [[property retain] autorelease] used in getter accessors, and just re-read the Memory Management Programming Guide (MMPG) to understand this. Now I do, and see how the perhaps once canonical approach of having a setter rele

Re: Application Activation

2009-02-22 Thread Jean-Daniel Dupas
Le 22 févr. 09 à 11:56, Gerriet M. Denkmann a écrit : There are two ways an app can become active: 1. by explicit user action (clicking in Finder, clicking in Dock, using Command-Tab) or: 2. without user action (frontmost app is closed or hidden, so the next app becomes active). I would

Re: How to get strings like for all objects

2009-02-22 Thread Jean-Daniel Dupas
Le 22 févr. 09 à 15:14, Ken Tozier a écrit : Hi I need to get unique identifiers for all objects I'm passed for use as keys in an NSMutableDictionary. I tried using hash but I don't know if that would really be unique. It seems like the console printout for classes with no "description"

Re: Simple text encryption

2009-02-26 Thread Jean-Daniel Dupas
Le 26 févr. 09 à 00:13, Graham Cox a écrit : On 26/02/2009, at 10:03 AM, Erg Consultant wrote: Are there any classes in Cocoa for simple text file or plist file encryption? I just need something I can point at a file on disk and do simple encryption without a password or key and then deco

Re: Parsing integers from strings

2008-10-07 Thread Jean-Daniel Dupas
Le 7 oct. 08 à 07:08, Cyrus Najmabadi a écrit : I've been unsuccessful finding the right class in cocoa to help me parse integers inside NSStrings. I'm looking for something similar to java's Long.parseInt(string, radix). i.e. something that can understand a stream of numbers along with a

Re: Optimized pixel manipulation

2008-10-08 Thread Jean-Daniel Dupas
CGImage does not provide an efficient way to update , but maybe CGImage is not what you want. Where your image come from, why do you need a CGImageRef and what are you trying to do with it ? Le 8 oct. 08 à 17:01, Christian Giordano a écrit : I'm modifying frequently the pixels of the image

Re: Optimized pixel manipulation

2008-10-08 Thread Jean-Daniel Dupas
if maybe I need something else, but clearly I have no idea which other options I have. Maybe using OpenGL (ES)? The ultimate aim is of course to renderer the result of all the manipulation, at the moment this happens in a UIView.drawRect. Cheers, chr On Wed, Oct 8, 2008 at 4:25 PM, Jean-Dani

Re: Optimized pixel manipulation

2008-10-08 Thread Jean-Daniel Dupas
How do you create your bitmap context ? AFAK, to create a bitmap context, you should use CGBitmapContextCreate() that take as first argument the image backing store. So you already have it. The other way I know, is the create an NSBitmapImageRep, and then using it to create an NSGraphicsCon

Re: Mirror...rorriM : Details Please

2008-10-09 Thread Jean-Daniel Dupas
It does not differenciate bewteen X and Y, but it allows -1. Just use the text field to enter the value instead of using the slider. Le 9 oct. 08 à 10:36, M Pulis a écrit : OK, I can see one of my problems IB and FH (funhouse) do not allow -1 nor differentiate between X and Y scale facto

Re: Strategy for naming support folder

2008-10-13 Thread Jean-Daniel Dupas
Le 10 oct. 08 à 20:04, Uli Kusterer a écrit : On 10.10.2008, at 07:15, Graham Cox wrote: On 10 Oct 2008, at 11:30 am, j o a r wrote: Most apps use just the name, but I've never liked that and I support your idea of using the bundle identifier. Makes a lot of sense. Yep, seemed to make se

Re: keystroke logger for Mac OS X

2008-10-13 Thread Jean-Daniel Dupas
Note that this technic will not be able to catch secured events: http://developer.apple.com/technotes/tn2007/tn2150.html Le 13 oct. 08 à 16:24, Dave DeLong a écrit : Use a CGEventTap for the keystroke capturing, and the NSWorkspace class to get the info you need about the frontmost app. Wr

Re: how to complete c/s app

2008-10-15 Thread Jean-Daniel Dupas
Use Distributed Object, there is plenty of sample codes. Le 15 oct. 08 à 12:43, han a écrit : how to complete a c/s app.Is there a sample code? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Decoding OSStatus values

2008-10-15 Thread Jean-Daniel Dupas
Le 15 oct. 08 à 16:49, Richard Dearlove a écrit : Is there an easy way to decode the values from OSStatus. I have this #define that I copied from another project but it isnt really helping.. This gives me an error such as Error: \316\377\377\377 #define checkStatus( err) \ if(err) {\ pr

Re: Length of a filename

2008-10-16 Thread Jean-Daniel Dupas
Le 16 oct. 08 à 11:31, Gerriet M. Denkmann a écrit : How can I check the appositeness of a filename? This will not work: if ( [potentialPath length] > 255 ) ... error: filename too long because HFS+ uses some decomposed form. This might work: if ( [[ NSString stringWithUTF8String: [potentia

Re: Screen not redrawing

2008-10-18 Thread Jean-Daniel Dupas
Le 18 oct. 08 à 05:50, Russ a écrit : Check to make sure [window isFlushWindowDisabled] is NO and [window isAutodisplay] is YES. Yes, both OK. Also, try dropping a standard control (e.g. a button) in and see if it redraws to the pressed state when you press it. When I do this programmatic

Re: what do you use to make icons and similar?

2008-10-19 Thread Jean-Daniel Dupas
Le 19 oct. 08 à 11:20, Roland King a écrit : I need a make a few icons and other graphics for my app, simple stuff like a small yellow triangle with an invisible background. I'm totally and completely graphically challenged which never helps. I can't find a simple (preferably free!) drawing

Re: what do you use to make icons and similar?

2008-10-19 Thread Jean-Daniel Dupas
Le 19 oct. 08 à 16:32, John Joyce a écrit : : I believe png are really what I'm trying to make here, they seem to be recommended. PNGs are not resolution independent, although they are perfectly acceptable. Saving as a TIFF then converting it to PDF with Preview works well for me. Please

Re: Putting an image on a CALayer

2008-10-21 Thread Jean-Daniel Dupas
Le 21 oct. 08 à 17:46, DKJ a écrit : I'd like to put an image stored in a JPEG file onto a CALayer. It seems that I do this by assigning a CGImageRef to its contents property. But how do I get a CGImageRef from a file? Do I make an NSData object from the file and do something with that?

Re: Retain

2008-10-24 Thread Jean-Daniel Dupas
All answers you need are in this guide: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html Le 24 oct. 08 à 07:24, Ron Green a écrit : If I call NSString w = [NSString stringWithFormat:@"something %i", x]; Am I now suppose to call retain on w? Wh

Re: Apple Developer Forums

2008-10-25 Thread Jean-Daniel Dupas
Le 25 oct. 08 à 05:04, Stefan Arentz a écrit : On Fri, Oct 24, 2008 at 12:15 PM, Randall Meadows <[EMAIL PROTECTED] > wrote: It looks like we're legit to discuss now! Personally I think this is a big joke. You need to be signed up as a paying developer to acce

Re: CFPreferences and init.

2008-10-26 Thread Jean-Daniel Dupas
Le 26 oct. 08 à 13:02, Adam Penny a écrit : Hi there, Thanks for your response Kyle. Based on that I did this in my -(id)initWithBundle method and tested it with and without a PList in the right place and it works: servers= [[NSMutableArray alloc] init]; CFPropertyListRef serversFromPli

Re: How to check the number of pending events in the application event queue?

2008-10-27 Thread Jean-Daniel Dupas
Le 27 oct. 08 à 13:54, Oleg Krupnov a écrit : In my app I'd like to perform some background task without affecting the responsiveness of the UI. To avoid multi-threading, I just postpone the task to a moment when the user becomes and stays idle for a certain time. Have you a good reason to a

Re: Not so long filenames

2008-10-28 Thread Jean-Daniel Dupas
Le 28 oct. 08 à 12:50, Gerriet M. Denkmann a écrit : On 28 Oct 2008, at 01:39, Jeremy Pereira wrote: On 26 Oct 2008, at 09:55, Gerriet M. Denkmann wrote: On 26 Oct 2008, at 00:30, Postmaster wrote: On 14 Oct 2008, at 21:00, Gerriet M. Denkmann wrote: On 14 Oct 2008, at 18:07, Jason

Re: Code signing validation

2008-10-28 Thread Jean-Daniel Dupas
You may fill a feature request to ask Apple to publish this API that is part of the Security Framework: http://www.opensource.apple.com/darwinsource/10.5.5/libsecurity_codesigning-33803/lib/SecStaticCode.h Le 28 oct. 08 à 10:36, [EMAIL PROTECTED] a écrit : Hello list Having implemented co

Re: Message Forwarding Overhead / Performance

2008-10-29 Thread Jean-Daniel Dupas
Le 29 oct. 08 à 04:46, Michael Ash a écrit : On Tue, Oct 28, 2008 at 6:16 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: Roughly, the lesson is: Don't use message forwarding for "actual work". I was just wondering if anyone had ever found otherwise. I have to say that this is greatly overst

Re: Is there an equivalent to std::min/std::max for Cocoa programmer's

2008-10-29 Thread Jean-Daniel Dupas
MIN(), MAX() (from Foundation/NSObjCRuntime.h) ? Le 29 oct. 08 à 18:26, Michael A. Crawford a écrit : -Michael___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Re: Customizing controls: Inheritance bad?

2008-10-30 Thread Jean-Daniel Dupas
Le 30 oct. 08 à 16:51, Brian Williams a écrit : Hello, I'm brand new to Cocoa/Obj-C and I'm working on converting an app. to use Cocoa... I've heard that, in general, if you are using inheritance in Cocoa, you're not following the typical standard design pattern. Is this true? To r

Re: Type comparison warning

2008-10-30 Thread Jean-Daniel Dupas
Le 30 oct. 08 à 19:01, Scott Ribe a écrit : Not true, NSInteger and NSUInteger are typedefs for plain integer types, *not* Objective-C objects. Yes, yes, yes. Thanks for pointing that out. I'm not doing 10.5-only development yet, so I read "NSNumber" because I'm not used to seeing NSInteger a

Re: Porting from Windows to Mac

2008-10-31 Thread Jean-Daniel Dupas
Le 30 oct. 08 à 23:49, Stefan Werner a écrit : I would also recommend that you start over with the design of your GUI, for the sensibilities and design principles of Mac OS X are very different. This difference is exacerbated if you consider the age of MFC... You are aware that MFC (199

Re: Compare images in Cocoa

2008-10-31 Thread Jean-Daniel Dupas
Le 31 oct. 08 à 16:56, Brian Stern a écrit : On Oct 30, 2008, at 11:21 PM, Pierce Freeman wrote: Hi everyone. I am wondering if there is some way to compare two images in Cocoa, and then somehow spit out a percent of how similar they are. The only way I could think of is comparing every p

Re: Splitting model I/O for optimization

2008-11-01 Thread Jean-Daniel Dupas
Le 1 nov. 08 à 09:31, Oleg Krupnov a écrit : In my app all model data are saved in a single file. For the purpose of optimizing file I/O, I'm looking for a solution that would not force me to resave the entire model when only a tiny bit of it has changed, and also allow loading (fetching) the m

Re: NSClassDescription Clarification

2008-11-05 Thread Jean-Daniel Dupas
Le 5 nov. 08 à 16:43, Carmen Cerino Jr. a écrit : I would like to take advantage of Key-Value Programming in my application. Utilizing key-value programming I would like the ability to iterate through all of my object's values or members. If I am understanding NSObject's documentation right, I n

Re: Two-way connection with NSConnection

2008-11-06 Thread Jean-Daniel Dupas
Le 6 nov. 08 à 12:12, Stefan Hafeneger a écrit : Hi, I would like to set up a two way connection between processes using NSConnection. I currently have solved this vending an object in each process. Now someone proposed to send self as a parameter using the rootProxy to the vendor. This w

Re: Issue with the downloading url

2008-11-06 Thread Jean-Daniel Dupas
Le 6 nov. 08 à 15:02, Arnab Ganguly a écrit : Hi All, My requirement is to download the html file in my machine.I am trying to execute the below code,it gets executed correctly but when I go to the /tmp dir I don't see any file getting downloaded.Any help would be very much appreciated.

Re: Issue with the downloading url

2008-11-06 Thread Jean-Daniel Dupas
ach I need to proceed with this. Thanks On Thu, Nov 6, 2008 at 7:48 PM, Jean-Daniel Dupas <[EMAIL PROTECTED] >wrote: Le 6 nov. 08 à 15:02, Arnab Ganguly a écrit : Hi All, My requirement is to download the html file in my machine.I am trying to execute the below code,it gets executed

Re: Issue with the downloading url

2008-11-07 Thread Jean-Daniel Dupas
Check the server response. NSError *error; NSHTTPURLResponse *response = nil; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://yp.shoutcast.com/sbin/tunein-station.pls? id=9907"]]; NSData *data

Re: Issue with the downloading url

2008-11-07 Thread Jean-Daniel Dupas
e. One thing I would like to know from where can I get these information about how the server understands the different types of request from "Unknown Server" ? Thanks Arnab On Fri, Nov 7, 2008 at 8:18 PM, Jean-Daniel Dupas <[EMAIL PROTECTED] > wrote: And another po

Re: Notification when window is closing?

2008-11-07 Thread Jean-Daniel Dupas
Le 7 nov. 08 à 18:57, Jean-Nicolas Jolivet a écrit : Thanks! working like a charm! :) Oh while I'm on the preference panel subject... I notice that a lot of applications (Adium, Safari, TextMate etc.. comes to mind) are using what looks like a fancy version of tabs in their preference...

Re: Setting up a main menu in a NIB(XIB)?

2008-11-12 Thread Jean-Daniel Dupas
Did you had a look at the "nibless app" articles on Lap Cat's blog? http://lapcatsoftware.com/blog/2008/10/20/working-without-a-nib-part-7-the-empire-strikes-back/ Le 12 nov. 08 à 17:47, Russ a écrit : As I said, please save your typing on the "this is the wrong way" speech. This is an exist

Re: How can I use NSTextField like a button?

2008-11-12 Thread Jean-Daniel Dupas
Le 12 nov. 08 à 11:28, Ulf Dunkel a écrit : I want to use some kind of URL text in a dialog, which the users can click on and which should then open the browser with a specific URL. Ron Fleckner pointed me to this helpful link: http://developer.apple.com/qa/qa2006/qa1487.html I have imple

Re: Thread programming

2008-11-13 Thread Jean-Daniel Dupas
Please, read the link provided in the previous post. It describe in details how and when to setup and run a run loop. Using a runloop without understanding what it does is not a good thing, especially if you want to do multi-threading programming. Le 13 nov. 08 à 09:48, Mahaboob a écrit :

Re: geting the folders contents via http

2008-11-13 Thread Jean-Daniel Dupas
Le 13 nov. 08 à 18:00, Valentin Dan a écrit : Hi, Is there a way to get the files in a folder like: "http://mysite.com/myfolder/"; ? I have a bunch of pictures there and I want to go through them, select one and put it's content in a NSTableView's cell. If your server allows "director

Re: NSColorWell opacity...

2008-11-13 Thread Jean-Daniel Dupas
Didn't you have the API reference in Xcode ? +[NSColor setIgnoresAlpha:]; http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html#/ /apple_ref/occ/clm/NSColor/setIgnoresAlpha: If the application doesn't support alpha, no opacity s

Re: Distributed Objects Performance

2008-11-14 Thread Jean-Daniel Dupas
Le 14 nov. 08 à 10:47, Seth Willits a écrit : On Nov 13, 2008, at 11:33 PM, Bridger Maxwell wrote: How often? 60 times per second often? Once per second often? Every minute, often? You'll need to calculate the amount of data you're expecting to transfer, worst case. I would say about

[ANN] SArchiveKit: A XAR Cocoa library

2008-11-14 Thread Jean-Daniel Dupas
Hi, The SArchiveKit is a Cocoa framework to create and extract XAR archives. It supports archive signature, background file extraction, subdocument, and more. http://code.google.com/p/sarchivekit/ And it is released under MIT license. ___ Cocoa-d

Re: Archiving NSError

2008-11-16 Thread Jean-Daniel Dupas
Le 16 nov. 08 à 15:41, Vera Tkachenko a écrit : Hello to mac developers :) If I don't misunderstand things NSError objects can be archived because NSError implements NSCoding protocol. I try to archive it as follows: NSMutableDictionary * dict = [[NSMutableDictionary alloc]

Re: Grow Bug ?

2008-11-17 Thread Jean-Daniel Dupas
Le 16 nov. 08 à 23:32, Carlos Eduardo Mello a écrit : Hi, Cocoa newbie here. I've been doing Carbon developing for a while, but just started to learn Cocoa. So, forgive me if my questions seem too dum. I was working on Hillgass's Custom Views tutorial (chapter 17, pg. 233). It involves

Re: Writing a more usable AppleEvent logger

2008-11-17 Thread Jean-Daniel Dupas
Le 17 nov. 08 à 08:06, Ken Tozier a écrit : Hi I've been working with AppleEvents and discovering their internals by setting the following in the terminal > export AEDebugSends=1; export AEDebugReceives=1 What I'd like to be able to do is observe apple events exactly like this tool but

Re: newbie NSMutable dictionary subclass question

2008-11-17 Thread Jean-Daniel Dupas
Can the value part of a key-value pair in an NSMutableDictionary be a literal NSString, like @"name"? It would seem so, because this works or at least doesn't crash: NSMutableDictionary *bobo; bobo = [[NSMutableDictionary alloc] init]; [bobo setValue:@"root" forKey:@

Re: [MyClass class] returning superclass's class

2008-11-19 Thread Jean-Daniel Dupas
Le 19 nov. 08 à 13:32, Ken Tozier a écrit : Hi I wrote a subclass of NSCharacterSet and at runtime, when I do [MyClass class] it returns the superclass's class rather than the class value. I suspect this is "normal" What make you think this is normal ? How do you create your instance ?

Re: Writing a more usable AppleEvent logger

2008-11-19 Thread Jean-Daniel Dupas
Le 19 nov. 08 à 13:36, Ken Tozier a écrit : On Nov 17, 2008, at 3:51 AM, Jean-Daniel Dupas wrote: Le 17 nov. 08 à 08:06, Ken Tozier a écrit : What do you mean by "this tool" ? export is used to set an environment variable. I guess that system functions that send and rec

Re: OpenGL + NSTextView/NSTextContainer?

2008-11-19 Thread Jean-Daniel Dupas
Le 19 nov. 08 à 13:39, Karan, Cem (Civ, ARL/CISD) a écrit : On Tue, 18 Nov 2008 12:26:04 -0800 (PST) Erik Buck wrote: Open GL has no built-in capability for drawing text. Open GL provides lower level primitives like lines and curves and meshes. Open GL also provides texture compositing. Th

Re: Writing a more usable AppleEvent logger

2008-11-19 Thread Jean-Daniel Dupas
Le 19 nov. 08 à 15:43, Ken Tozier a écrit : On Nov 19, 2008, at 8:52 AM, Jean-Daniel Dupas wrote: The logging is performed by the application itself (I guess this is done in AESendMessage or a lower level private function for send events and in AEDecodeMessage or a lower level private

Re: Writing a more usable AppleEvent logger

2008-11-19 Thread Jean-Daniel Dupas
Le 19 nov. 08 à 16:42, Jean-Daniel Dupas a écrit : Le 19 nov. 08 à 15:43, Ken Tozier a écrit : On Nov 19, 2008, at 8:52 AM, Jean-Daniel Dupas wrote: The logging is performed by the application itself (I guess this is done in AESendMessage or a lower level private function for send

Re: OpenGL + NSTextView/NSTextContainer?

2008-11-19 Thread Jean-Daniel Dupas
Le 19 nov. 08 à 17:16, Karan, Cem (Civ, ARL/CISD) a écrit : On Wednesday, November 19, 2008 9:04 AM Jean-Daniel Dupas wrote: Do you need text editing capability, or just text drawing ? If this is text drawing, I don't see what NSTextView provide that is not possible with NSAttributedS

Re: Info request on developing codec

2008-11-19 Thread Jean-Daniel Dupas
Le 19 nov. 08 à 17:49, Arnab Ganguly a écrit : Hi All, I am planning to write a Codec for my application.Can you help on the things I need to take care also please let me know how to integrate the codec. Thanks in advance. Arnab Image Codec ? Audio Codec ? Video Codec ? Codec for Quic

Re: Changing Services HotKey at Runtime

2008-11-19 Thread Jean-Daniel Dupas
Le 19 nov. 08 à 22:30, Peter Ammon a écrit : On Nov 19, 2008, at 4:49 AM, Xavier Snark wrote: Greetings, In my application I would like to change the Services Hotkey combination at runtime. So far, the only Apple documentation that I have found states that the hotkey is configured via t

Re: Question about NSThread?

2008-11-19 Thread Jean-Daniel Dupas
Yes, as long as you do not access directly your UI from the background thread (you can do it, but using you should use the performOnMainThread: method). Note that you may want to release and recreate your auto release pool from time to time (between each image for example), else your autore

Re: Autorelease Question

2008-11-20 Thread Jean-Daniel Dupas
Le 20 nov. 08 à 05:48, Kyle Sluder a écrit : On Wed, Nov 19, 2008 at 11:38 PM, Michael Ash <[EMAIL PROTECTED]> wrote: Seriously, this kind of hysteria does nobody any good. Nothing you do besides explicitly releasing/draining an NSAutoreleasePool instance that you explicitly created is going

Re: [MyClass class] returning superclass's class

2008-11-20 Thread Jean-Daniel Dupas
As I said, NSCharacterSet is a class cluster, you cannot subclass it as you do for simple classes. Le 20 nov. 08 à 11:37, Ken Tozier a écrit : @interface KOptionString : NSCharacterSet { } @end KOptionString *whiteTest = [KOptionString whitespaceCharacterSet], *hexTest = [KOpti

Re: what replaces ICARegisterEventNotificationPB

2008-11-20 Thread Jean-Daniel Dupas
Just a question about doc bug. We can submit them using bugreporter.apple.com And we can submit them using the "Did this document help you? > It’s good, but" link at bottom of all online doc page. Is there a prefered way to submit them ? Le 20 nov. 08 à 17:22, Scott Anguish a écrit : plea

Re: GetApplicationTextEncoding & "carbon free"

2008-11-21 Thread Jean-Daniel Dupas
Le 21 nov. 08 à 10:42, spsaxena a écrit : Hi all, I am working on making my application carbon free. I could not find any replacement for the API "GetApplicationTextEncoding" probably because this API has not been marked as deprecated yet. Because of this API I need to link with the carbo

Re: Tabbing to Placeholders

2008-11-21 Thread Jean-Daniel Dupas
Le 21 nov. 08 à 15:50, Greg Deward a écrit : Good morning! This may be more of an XCode question, however the XCode list appears to be for people who are developing for or extending XCode. Sorry if this isn't a good place to post this. isn't the list name "xcode-users" ? And extending X

Re: NSIndexSet

2008-11-21 Thread Jean-Daniel Dupas
Le 21 nov. 08 à 16:44, David Blanton a écrit : How would one construct an NSIndexSet containing the indices 2,4,5 ? I did: NSRange two = NSMakeRange(2, 1); NSRange four = NSMakeRange(4, 1); NSRange five = NSMakeRange(5, 1); NSRange u1 = NSUnionRange(two,four

Re: Autorelease Question

2008-11-21 Thread Jean-Daniel Dupas
Le 21 nov. 08 à 16:56, Filip van der Meeren a écrit : Ok, lets say that [NSString string] creates a new object each and every time a framework/Application needs an empty string (like about a billion times). Then the RAM would be stuffed with empty string objects that are useless for everyo

Re: Remove HTML Tags

2008-11-24 Thread Jean-Daniel Dupas
Le 24 nov. 08 à 00:54, Mr. Gecko a écrit : Hello, what's the best way to remove html tags and javascript from a NSString? (I'm working on a web crawler and I'm needing a way to get the contents of a page that doesn't have a description on it.) Thanks, Mr. Gecko Just a suggestion:

Re: Need some advice on multithreading

2008-11-24 Thread Jean-Daniel Dupas
Le 24 nov. 08 à 11:35, WT a écrit : >>[...] >>Is this the right idea? Does anyone have a better suggestion? Are >>there any pitfalls that I'm not seeing? One concern I have is that >>there might be some weird interactions between running the simulation >>and drawing the results due to the fact

Re: using C++ STL in Empty Project

2008-11-24 Thread Jean-Daniel Dupas
Le 24 nov. 08 à 13:27, BirdSong a écrit : Hi all,I want to use c++ STL in a empty project, but there are some linking errors... Does anyone know how to fix it?Are there any pre- steps to setup the environment (such as set include path, or include some framework, etc).Thanks in advance.Bes

Re: Call getElementById in Cocoa

2008-11-24 Thread Jean-Daniel Dupas
Le 24 nov. 08 à 16:42, Pierce Freeman a écrit : Hi everyone. I am wondering if there is some way to call the getElementById on a website through Cocoa, and then return the value of the field. I am assuming it would somehow be through WebKit, but I am not sure how to do this (as well as

<    5   6   7   8   9   10   11   12   >