Looking for a person to port a Unix library to Cocoa

2008-03-04 Thread Devraj Mukherjee
Hi everyone, I am managing a project where I work where we require to port Loudmouth (http://www.loudmouth-project.org/) to OS X and provide a Cocoa wrapper to Loudmouth. We will be willing to release this back as part of the Loudmouth project. Is there anyone out there offering development servi

Dis-Allowing Multiple Instances of an Application

2008-03-04 Thread ADIL SALEEM
Hi, I have made an application in Cocoa. From GUI it's multiple instances can not be launched. However, from command shell, multiple instances of the application can be launched. I want to run only one instance of my application at a time. It should not be able to create multiple ins

Re: Dis-Allowing Multiple Instances of an Application

2008-03-04 Thread Kyle Sluder
On Tue, Mar 4, 2008 at 3:27 AM, ADIL SALEEM <[EMAIL PROTECTED]> wrote: > I have made an application in Cocoa. From GUI it's multiple instances can > not be launched. However, from command shell, multiple instances of the > application can be launched. This isn't how apps are supposed to be lau

Re: Dis-Allowing Multiple Instances of an Application

2008-03-04 Thread Julien Jalon
Do something like: CFMessagePortRef identityPort = CFMessagePortCreateLocal(NULL, CFSTR(" com.mycompany.myapplication.unique"), NULL, NULL, NULL); if(identityPort == NULL) { printf(stderr, "Application is already launched\n"); exit(1); } // else keep this port around, it will be destroyed o

Loading web pages in WebView

2008-03-04 Thread ali alavi
I have a WebView and a NSTextField (as URL address bar) on my window. I need to be able to load the page automatically when I programmatically set the URL filed to a web page address. However the only way I can make the page appear now is by clicking in the URL field and hitting Return key. How

Re: localizable strings file with macro

2008-03-04 Thread Julien Jalon
1) Might not be a good idea to use CFStringGetCStringPtr as it might return NULL2) kCFStringEncodingMacRoman is likely not a good choice as the encoding, especially for localized strings If I were you, I'd do something like (warning: Mail compiled code): const char* MyGetLocalizedCString(CFStringR

(no subject)

2008-03-04 Thread ali alavi
I have a WebView and a NSTextField (as URL address bar) on my window. I need to be able to load the page automatically when I programmatically set the URL filed to a web page address. However the only way I can make the page appear now is by clicking in the URL field and hitting Return key. How

Re: localizable strings file with macro

2008-03-04 Thread Stephane Sudre
On 4 mars 08, at 10:28, Julien Jalon wrote: 1) Might not be a good idea to use CFStringGetCStringPtr as it might return NULL2) kCFStringEncodingMacRoman is likely not a good choice as the encoding, especially for localized strings If I were you, I'd do something like (warning: Mail compiled

Re: localizable strings file with macro

2008-03-04 Thread Jean-Daniel Dupas
Le 4 mars 08 à 11:21, Stephane Sudre a écrit : On 4 mars 08, at 10:28, Julien Jalon wrote: 1) Might not be a good idea to use CFStringGetCStringPtr as it might return NULL2) kCFStringEncodingMacRoman is likely not a good choice as the encoding, especially for localized strings If I were y

Re: Relaunching an application

2008-03-04 Thread Mattias Arrelid
On 3 mar 2008, at 20.43, Steven Degutis wrote: Perhaps a small application like relaunch.app could be imbedded into your relaunchable application, where all it pretty much does is serve as a buffer by relaunching your application reliably (through Cocoa methods) after your app calls it the same

Re: Using NSPredicate to parse strings

2008-03-04 Thread Jonathan Dann
On 3 Mar 2008, at 18:23, Dave Camp <[EMAIL PROTECTED]> wrote: On Mar 3, 2008, at 10:12 AM, Jonathan Dann wrote: On 3 Mar 2008, at 16:16, Mike Abdullah <[EMAIL PROTECTED]> wrote: Jonathon, you'll have much better luck with NSScanner. It's designed for exactly what you want. Mike. Tha

Re: Traversing windows with Cocoa

2008-03-04 Thread Bill Cheeseman
on 2008-03-03 5:31 PM, Eric Schlegel at [EMAIL PROTECTED] wrote: > The Accessibility API (_not_ AppleScript) is clearly the right way to > go here. With Accessibility you can get information about the windows > in other processes, including their titles, and then compare those > titles to your des

Re: Traversing windows with Cocoa

2008-03-04 Thread Bill Cheeseman
on 2008-03-03 5:45 PM, aldo kurnia at [EMAIL PROTECTED] wrote: > UI scripting is exactly what I've tried to do and failed. For example, you'd > expect the following script to work No. Your script doesn't work because it doesn't use GUI Scripting correctly. At the end of this message I've give

WebView searchFor

2008-03-04 Thread ali alavi
I am using WebView searchFor method to find a string on the web view and hilite it. I can see that string is found and hilited momentary but doesn't remain hilited permanently. How can I keep the found string hilited, until I search for another string and is found. Any help would be appreciat

Re: localizable strings file with macro

2008-03-04 Thread Stephane Sudre
On 4 mars 08, at 11:27, Jean-Daniel Dupas wrote: Le 4 mars 08 à 11:21, Stephane Sudre a écrit : On 4 mars 08, at 10:28, Julien Jalon wrote: 1) Might not be a good idea to use CFStringGetCStringPtr as it might return NULL2) kCFStringEncodingMacRoman is likely not a good choice as the enc

two table view selection problem

2008-03-04 Thread Nick Rogers
Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and then if I select a row in tableView2, I want the row in tableView1 to be deselected. For this I'm using [tableView1 deselectAll: nil], but it leads to calling the delegate method again and lea

Re: two table view selection problem

2008-03-04 Thread Stéphane
On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and then if I select a row in tableView2, I want the row in tableView1 to be deselected. For this I'm using [tableView1 deselectAll: nil], but it le

how to write on disk

2008-03-04 Thread norio
Hi, I think I understand how to write data on a disk using archive and serialization mechanism, but how about this case? I just want to write a short value, a long value and a double value in this order. I don't want to write anything but them. And I'd like to use document-based application

Re: how to write on disk

2008-03-04 Thread Martin
Why don't you wrap your data in an NSDictionary or an NSArray and use the writeToFile:atomically: method to write the data in a file? -Martin Le 4 mars 08 à 15:50, norio a écrit : Hi, I think I understand how to write data on a disk using archive and serialization mechanism, but how about

Re: how to write on disk

2008-03-04 Thread Jean-Daniel Dupas
Le 4 mars 08 à 15:50, norio a écrit : Hi, I think I understand how to write data on a disk using archive and serialization mechanism, but how about this case? I just want to write a short value, a long value and a double value in this order. I don't want to write anything but them. And I

Re: WebView searchFor

2008-03-04 Thread Douglas Norton
Ali, You do not need to post these Cocoa specific questions to the Xcode list, the Cocoa list alone will be sufficient. Douglas On Mar 4, 2008, at 3:59 AM, ali alavi wrote: I am using WebView searchFor method to find a string on the web view and hilite it. I can see that string is found

Tabless NSTabView IB3 Bug

2008-03-04 Thread Ben Einstein
I'm trying to use a tabless NSTabView in IB3. Before Leopard, you could double-click the space towards the top of the view and select the tabs, even though there was no visible tab. I also believe there was a control in the inspector to specify current tab? Anyway, none of these methods wor

Re: Relaunching an application

2008-03-04 Thread Michael Ash
On Mon, Mar 3, 2008 at 9:27 PM, Joe Ranieri <[EMAIL PROTECTED]> wrote: > Maybe I'm missing something, but > > Instead of NSTask, why not use LSOpenApplication passing in > (kLSLaunchDefaults | kLSLaunchNewInstance | kLSLaunchDontAddToRecents) > for flags? Your main program will block until t

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)

2008-03-04 Thread Jens Alfke
On 3 Mar '08, at 11:00 PM, Stuart Malin wrote: The library defines an XML_Char type, so my code below refers to that, but XML_Char is wchar_t (which, I believe is UTF8 on a Mac). No. It's UTF-16. (UTF-8 is an 8-bit encoding, a superset of ASCII where characters >127 are encoded as multiple

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Jean-Daniel Dupas
Le 4 mars 08 à 17:05, Ben Einstein a écrit : I'm trying to use a tabless NSTabView in IB3. Before Leopard, you could double-click the space towards the top of the view and select the tabs, even though there was no visible tab. I also believe there was a control in the inspector to specify

Re: two table view selection problem

2008-03-04 Thread Corbin Dunn
On Mar 4, 2008, at 8:09 AM, Andy Lee wrote: Try changing the -isEqual: calls to == instead, e.g.: if ([notification object] == tableView1) I suspect -isEqual: is always returning YES. No, this is not the problem. Using == is okay (and faster), since NSView's are always unique. -c

Re: Any Seattle-area Cocoa developer groups?

2008-03-04 Thread Paul Goracke
On Mar 3, 2008, at 10:21 PM, David Orriss Jr wrote: Are there any Seattle-area Cocoa programming groups out there? Tried to email seattlexcoders.org but the contact email alias is down. Looks like you found the one I know of and participate in. I'll let a maintainer know about the contact

Re: Best way to hook up Font Panel to floater (that isn't first responder)?

2008-03-04 Thread Benjamin Stiglitz
Is there a way to hook up the Font Panel directly? This needs to be "spring loaded" so that the Font Panel follows the user's focus most of the time, but switches to my panel when the user clicks the Font button but returns to the original 1stR when they go back to the main document. Or may

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Ben Einstein
Yea, I know that. But shouldn't there be a more accessible way? I don't use the browser/outline view much and it used to be much easier to change between tabs. Ben On Mar 4, 2008, at 11:10 AM, Benjamin Stiglitz wrote: I'm trying to use a tabless NSTabView in IB3. Before Leopard, you could

Re: NSURLConnection SSL connection with expired cert.

2008-03-04 Thread Jens Alfke
On 3 Mar '08, at 10:13 PM, Marcel Borsten wrote: I don't think this is in any way documented and can break at any time, but after looking around for a while I found this method: @interface NSURLRequest (NSHTTPURLRequest) + (BOOL)allowsAnyHTTPSCertificateForHost:(id)fp8; + (void)setAllowsAny

Re: two table view selection problem

2008-03-04 Thread Stephane Sudre
On 4 mars 08, at 17:14, Corbin Dunn wrote: On Mar 4, 2008, at 6:49 AM, Stéphane wrote: On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and then if I select a row in tableView2, I want the row

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Hank Heijink (Mailinglists)
There is a way, but I did like the IB 2.0 way better... Change the view mode of the main IB window to list or column view and navigate to your tabview. If you double click on the individual tab view items, your document will change to the tab view item you select. Hank On Mar 4, 2008, at 1

Re: two table view selection problem

2008-03-04 Thread Corbin Dunn
On Mar 4, 2008, at 6:49 AM, Stéphane wrote: On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and then if I select a row in tableView2, I want the row in tableView1 to be deselected. For this I'm

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Benjamin Stiglitz
I'm trying to use a tabless NSTabView in IB3. Before Leopard, you could double-click the space towards the top of the view and select the tabs, even though there was no visible tab. I also believe there was a control in the inspector to specify current tab? Anyway, none of these methods wor

Re: two table view selection problem

2008-03-04 Thread Andy Lee
Try changing the -isEqual: calls to == instead, e.g.: if ([notification object] == tableView1) I suspect -isEqual: is always returning YES. --Andy On Mar 4, 2008, at 9:35 AM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in ta

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)

2008-03-04 Thread Dave Camp
On Mar 3, 2008, at 11:00 PM, Stuart Malin wrote: My problem is that I receive a function call from a C library that gives me a wchar_t array and its length. The unicode array is _not_ terminated. The library defines an XML_Char type, so my code below refers to that, but XML_Char is wchar

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Richard Pollock
As pointed out by Jean-Daniel Dupas, the Control+Command+left/right arrow keys can be used to move between tabs once selected. Additionally, you can also use Control+Command+Up/Down arrow keys to navigate up and down the view hierarchy. For example, to select a tab in your tabless view, you can se

KVO autonotifying complaining about custom setter return value

2008-03-04 Thread Jim Turner
Hi List, In attempting to use a custom setter for a object, I'm getting the following message in the console the first time that object is instantiated: KVO autonotifying only supports -set: methods that return void. Autonotifying will not be done for invocations of -[MyObject setValue:] The set

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Ben Einstein
Thanks all. These work okay, I'm just surprised the old functionality is gone. It seemed much more intuitive to just click on the "tab" than browsing the view hierarchy. Ben On Mar 4, 2008, at 11:40 AM, Richard Pollock wrote: As pointed out by Jean-Daniel Dupas, the Control+Command+left/rig

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)

2008-03-04 Thread Brady Duga
On Mar 4, 2008, at 8:25 AM, Dave Camp wrote: You actually have two problems here: 1) wchar_t on the Mac is a 4 byte per character container (32 bits). Not quite correct. wchar_t, may, at this time, default to 4 bytes in an Xcode project, but it is *not* defined to be 4 bytes on the Mac. In

Re: Tabless NSTabView IB3 Bug1

2008-03-04 Thread Gordon Apple
I filed a bug report on this way back. My solution was to switch to a tabbed view, select, then switch back. > Message: 6 > Date: Tue, 4 Mar 2008 11:05:09 -0500 > From: Ben Einstein <[EMAIL PROTECTED]> > Subject: Tabless NSTabView IB3 Bug > To: cocoa dev > Message-ID: <[EMAIL PROTECTED]> >

Re: Triggering GUI login session from daemon? And reboot.

2008-03-04 Thread Jens Alfke
On 3 Mar '08, at 11:23 PM, Mac QA wrote: Can anyone inform me how to overcome this currently limitation of requiring one user auto-login on boot? I would like the system daemon to be able to initiate the GUI login session to the desired user from the login window without having to auto-login to

Re: NSFontManager Initialization

2008-03-04 Thread Gordon Apple
Therein lies the problem. When the user clicks the text tool and clicks a position on the view, I pop a sheet to enter the string and where the the font panel can be launched to set font and size. When the sheet is closed, the Bezier is created and the string appears as a Bezier shape object.

Re: General MVC and ownership question

2008-03-04 Thread Jens Alfke
On 3 Mar '08, at 6:16 PM, Graham wrote: The question is: would the better design be one-controller-per-view, or a single controller supporting multiple views? In other words should the controller typically associate with a single view or the data model? Generally there should be a contro

Re: two table view selection problem

2008-03-04 Thread Corbin Dunn
On Mar 4, 2008, at 8:28 AM, Stephane Sudre wrote: On 4 mars 08, at 17:14, Corbin Dunn wrote: On Mar 4, 2008, at 6:49 AM, Stéphane wrote: On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and th

NSString from wstring

2008-03-04 Thread Alexander Cohen
Hi, Whats the best way to get an NSString from a wstring? thanks AC ___ 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-admins(at)lists.apple

Re: Programmatically loading page into WebView [was: (no subject)]

2008-03-04 Thread Jens Alfke
On 4 Mar '08, at 1:18 AM, ali alavi wrote: I need to be able to load the page automatically when I programmatically set the URL filed to a web page address. However the only way I can make the page appear now is by clicking in the URL field and hitting Return key. How can I do this without

NSPopUpButton/NSArrayController selected item for beyond bounds value?

2008-03-04 Thread Keith Blount
Hi, Hopefully this is a simple one: I have an NSTableView, one column of which uses NSPopUpButtonCell and has its content bound to one NSArrayController which controls an array of list item strings for selection. Its selectedIndex is bound to the property of a different array controller. The

Re: Traversing windows with Cocoa

2008-03-04 Thread Stephan Burlot
Hi, I've posted some code that does what you want: It doesnt use any undocumented tricks, just the CGWindow API. As such, it works only with Leopard. Have fun, Stephan Le 3 mars 08 à 22:10, aldo kurnia a écrit : Hi every

Re: NSString from wstring

2008-03-04 Thread matt . gough
On 4 Mar 2008, at 18:43, Alexander Cohen wrote: Hi, Whats the best way to get an NSString from a wstring? This is what I do: @interface NSString (wstring_additions) +(NSString*) stringWithwstring:(const std::wstring&)string; -(std::wstring) getwstring; @end @implementation NSString (wstri

Re: regexkit [Using NSPredicate to parse strings]

2008-03-04 Thread Jens Alfke
On 4 Mar '08, at 3:25 AM, Jonathan Dann wrote: That is a seriously good framework, and the documentation is great too. My only issue with regexkit is that it uses PCRE instead of ICU. PCRE has to be compiled into the library, making it larger (whereas ICU is already built into the OS.)

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)

2008-03-04 Thread John Stiles
Brady Duga wrote: On Mar 4, 2008, at 8:25 AM, Dave Camp wrote: You actually have two problems here: 1) wchar_t on the Mac is a 4 byte per character container (32 bits). Not quite correct. wchar_t, may, at this time, default to 4 bytes in an Xcode project, but it is *not* defined to be 4 byt

Re: regexkit [Using NSPredicate to parse strings]

2008-03-04 Thread Jonathan Dann
On 4 Mar 2008, at 17:50, Jens Alfke wrote: On 4 Mar '08, at 3:25 AM, Jonathan Dann wrote: That is a seriously good framework, and the documentation is great too. My only issue with regexkit is that it uses PCRE instead of ICU. PCRE has to be compiled into the library, making it larger (w

Re: Best place to remove observer for NSViewBoundsDidChangeNotification

2008-03-04 Thread Jonathan Dann
On 25 Feb 2008, at 23:30, Jonathan Dann wrote: On 25 Feb 2008, at 23:15, Jerry Krinock wrote: I presume that sending a notification to a deallocced object causes a crash? Invariably! ;) Oh, yes, it will bite you. Says so right in the documentation of - [NSDocument close]. Funny how I

Re: NSString from wstring

2008-03-04 Thread Alexander Cohen
thx, works like a charm. AC On 4-Mar-08, at 12:49 PM, [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 18:43, Alexander Cohen wrote: Hi, Whats the best way to get an NSString from a wstring? This is what I do: @interface NSString (wstring_additions) +(NSString*) stringWithwstring:(const std:

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)

2008-03-04 Thread Brady Duga
On Mar 4, 2008, at 10:13 AM, John Stiles wrote: However, don't expect to be able to use any standard library calls in this mode. wcslen, wcscpy, wcscat? Roll your own. swprintf? Just forget about it. If you need to. The limitations here make it difficult to leverage 16-bit wchar_t eff

lock Keyboard for Kisok-Mode

2008-03-04 Thread Herr Thomas Bartelmess
Hello everyone. I would like to add an Kiosk mode to my Application. Does somebody know how I can lock the Computer for every kind of Keyboard Inputs (Just not for one Compo to leave the Kisok) Best would be if the mouse wouldn't be there too. Thanks for your help Thomas

Directly using NSString's "hash" (or equivalent) on unichar pointer

2008-03-04 Thread Ken Tozier
Hi I'm writing a generic parsing class and have one comparison method (isLiteral) I'd like to make as fast as possible. The basic question is: Does NSString use a hashing function that can be accessed without involving NSString? IE, is there a hashing function that can be used directly on

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)

2008-03-04 Thread John Stiles
To be clear, I'm not trying to say that 16-bit wchar_t has no value. Honestly, I think Apple should have much better support for it. If you're porting an app from Windows, you probably have to deal with WCHARs in some fashion. I'd like to say I have a radar for it but I'm honestly not sure. It

NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
I have a series of tiny (32x32) PGM image astronomical IR data in memory that I display on screen zoomed up to 640x640. Right now Im using a NSImageView and setImageScaling:NSScaleToFit. This works but some sort of gaussian blur gets applied to the image ruining the analysis. Is there a s

Re: How to get an NSString from a non-terminated array of unicode chars (length is known)

2008-03-04 Thread Clark Cox
On Tue, Mar 4, 2008 at 8:58 AM, Brady Duga <[EMAIL PROTECTED]> wrote: > > On Mar 4, 2008, at 8:25 AM, Dave Camp wrote: > > > > You actually have two problems here: > > > > 1) wchar_t on the Mac is a 4 byte per character container (32 bits). > > Not quite correct. wchar_t, may, at this time, d

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread Mike Abdullah
When you draw the image, have you tried doing [[NSGraphicsContext currentContext] setImageInterpolation: NSImageInterpolationNone] ? Mike. On 4 Mar 2008, at 19:13, R.L. Grigg wrote: I have a series of tiny (32x32) PGM image astronomical IR data in memory that I display on screen zoomed up t

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
Mike, yes that is something we tried but it seems to have no effect on the blurring. Thx, Russ On Mar 4, 2008, at 11:52 AM, Mike Abdullah wrote: When you draw the image, have you tried doing [[NSGraphicsContext currentContext] setImageInterpolation: NSImageInterpolationNone] ? Mike. On 4

SCT classes

2008-03-04 Thread Georg Tuparev
Folks, I am playing with dynamic class loading... When my test apps starts, I am creating a list of all classes (about 1700 for my ultra simple example). After a while I am recreating the same list. This time the list is longer (about 1800 classes) and contains lasses with "STC" prefix -

Re: Triggering GUI login session from daemon? And reboot.

2008-03-04 Thread Hamish Allan
On Tue, Mar 4, 2008 at 5:12 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > This isn't a Cocoa question; I'm pretty sure someone from Apple would > have to answer this, and the people I'm thinking of probably don't > read this list. I don't know what specific list to recommend, though, > as this i

Re: SCT classes

2008-03-04 Thread Jean-Daniel Dupas
Le 4 mars 08 à 21:10, Georg Tuparev a écrit : Folks, I am playing with dynamic class loading... When my test apps starts, I am creating a list of all classes (about 1700 for my ultra simple example). After a while I am recreating the same list. This time the list is longer (about 1800 cl

An Excursus

2008-03-04 Thread Jamie Phelps
This is tangentially related to my previous message about NSSearchField and Apple's Core Data Tutorial, but it concerns my learning experience with Cocoa more than being directly relevant to that thread. In talking off-list with another list member, he mentioned that I needed to bind the

Kiosk App

2008-03-04 Thread Thomas Bartelmess
Hello everyone. I would like to add an Kiosk mode to my Application. Does somebody know how I can lock the Computer for every kind of Keyboard Inputs (Just not for one Compo to leave the Kisok) Best would be if the mouse wouldn't be there too. Thanks for your help Thomas _

Re: Directly using NSString's "hash" (or equivalent) on unichar pointer

2008-03-04 Thread Jens Alfke
On 4 Mar '08, at 10:46 AM, Ken Tozier wrote: I'm writing a generic parsing class and have one comparison method (isLiteral) I'd like to make as fast as possible. The basic question is: Does NSString use a hashing function that can be accessed without involving NSString? IE, is there a hash

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread Jens Alfke
On 4 Mar '08, at 12:02 PM, R.L. Grigg wrote: Mike, yes that is something we tried but it seems to have no effect on the blurring. You have to set the interpolation at the moment the image is being drawn, i.e. just before the NSImage draw/composite call. You can't do this using a regular

Re: An Excursus

2008-03-04 Thread I. Savant
In talking off-list with another list member, he mentioned that I needed to bind the Selection Indexes and Sort Descriptors of one of my NSTableViews to the same for the controller for that table view, in this case MessagesController. That's fine and I appreciate the tip. (I'm not entirely

Problem with NSSearchField in Apple's Core Data Tutorial

2008-03-04 Thread Jamie Phelps
I am trying to follow Apple's Core Data tutorial and I am stuck on getting the NSSearchField to actually work. Another list member was helping me off-list and sent me a working nib file. When I dropped it into my project, however, it did not work; the search field

Re: regexkit [Using NSPredicate to parse strings]

2008-03-04 Thread Jens Alfke
On 4 Mar '08, at 10:19 AM, Jonathan Dann wrote: I'm most-likely going to have to support many text-encodings. Say if I'm writing a document in Jaspanese (Mac OS), will I have to convert that to UTF-8 before the methods of something like RegexKit would work? Any caveats you know of that I

Re: Core Data and retain count

2008-03-04 Thread Ben Trumbull
Bill, On Mar 2, 2008, at 5:35 PM, Ben Trumbull wrote: My question is, why would changing a property value cause another property to have its retain count increase? No idea. Why don't you run it in gdb and break on the -retain method and get some stack traces ? This works best if the cl

Re: An Excursus

2008-03-04 Thread mmalc crawford
On Mar 4, 2008, at 12:47 PM, Jamie Phelps wrote: In talking off-list with another list member, he mentioned that I needed to bind the Selection Indexes and Sort Descriptors of one of my NSTableViews to the same for the controller for that table view, in this case MessagesController. That's

Re: regexkit [Using NSPredicate to parse strings]

2008-03-04 Thread glenn andreas
On Mar 4, 2008, at 11:50 AM, Jens Alfke wrote: On 4 Mar '08, at 3:25 AM, Jonathan Dann wrote: That is a seriously good framework, and the documentation is great too. My only issue with regexkit is that it uses PCRE instead of ICU. PCRE has to be compiled into the library, making it large

Re: Problem with NSSearchField in Apple's Core Data Tutorial

2008-03-04 Thread Meik Schuetz
Dear Jamie, I am also just starting learning Cocoa and Core Data and coming from the C#/NET group I find also find it frustrating and than very elegant at the same time - I believe the frustrating part will just disappear with time to get used to it all. I just looked at your posted source code

Re: SCT classes

2008-03-04 Thread Benjamin Stiglitz
I am playing with dynamic class loading... When my test apps starts, I am creating a list of all classes (about 1700 for my ultra simple example). After a while I am recreating the same list. This time the list is longer (about 1800 classes) and contains lasses with "STC" prefix - like SCTC

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
Mike, Jens, I created a NSImageView subclass and call [[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationNone] in the overridden -drawRect: method just before invoking [super drawRect:aRect]. It works perfectly!!! I get a clean scaled-up image with no blurring!

Re: Core Data and retain count

2008-03-04 Thread Bill
On Mar 4, 2008, at 1:06 PM, Ben Trumbull wrote: Bill, On Mar 2, 2008, at 5:35 PM, Ben Trumbull wrote: My question is, why would changing a property value cause another property to have its retain count increase? No idea. Why don't you run it in gdb and break on the -retain method and ge

In need of some help with NSToolbarItem

2008-03-04 Thread Matthew Delves
Greetings, I've been reading through some of the apple documentation and have a basic understanding of what needs to be done when creating an NSToolbarItem subclass that contains a custom view. What I'm not sure about is how to pass any mouse click events through to the custom view rather

Re: Problem with NSSearchField in Apple's Core Data Tutorial

2008-03-04 Thread Meik Schuetz
Dear mmalc, Thanks for your concerns - I confess that I was not very specific about my "frustrations": They are more related to IB than Core Data or MVC. Having a first look at Core Data and looking back to 20 years in this business and various programming languages and frameworks I believe I won't

Re: Problem with NSSearchField in Apple's Core Data Tutorial

2008-03-04 Thread mmalc crawford
On Mar 4, 2008, at 1:18 PM, Meik Schuetz wrote: I am also just starting learning Cocoa and Core Data Just for the sake of repeating it... *Don't*. I find also find it frustrating This is not surprising. The documentation makes clear that Core Data is not a beginner technology: Before

Re: Compilation: error on linking libcurl PPC 7.18 on my Cocoa project

2008-03-04 Thread Nir Soffer
On Feb 29, 2008, at 11:03, Michaël Parrot wrote: To start portage of winwin project to Mac OS X I need to use the library libcurl 7.18 but the build faild on PPC link. I downloaded two binaries from http://www.hmug.org/pub/MacOS_X/BSD/ Applications/Internet/curl/ since the page http://curl

Re: In need of some help with NSToolbarItem

2008-03-04 Thread Peter Ammon
On Mar 4, 2008, at 1:55 PM, Matthew Delves wrote: Greetings, I've been reading through some of the apple documentation and have a basic understanding of what needs to be done when creating an NSToolbarItem subclass that contains a custom view. What I'm not sure about is how to pass any mo

Localise between different versions of English

2008-03-04 Thread Alexander Hartner
I have an application which I would like to localise, however i need to support two flavours of English, one for the British edition and another for the US. In particular the word "Synchronize / Synchronise) is cause me headaches. Interface builder only seems to give me English. Any ideas o

Re: Localise between different versions of English

2008-03-04 Thread Douglas Davidson
On Mar 4, 2008, at 2:43 PM, Alexander Hartner wrote: I have an application which I would like to localise, however i need to support two flavours of English, one for the British edition and another for the US. In particular the word "Synchronize / Synchronise) is cause me headaches. Interf

Re: Localise between different versions of English

2008-03-04 Thread Nick Zitzmann
On Mar 4, 2008, at 3:43 PM, Alexander Hartner wrote: I have an application which I would like to localise, however i need to support two flavours of English, one for the British edition and another for the US. In particular the word "Synchronize / Synchronise) is cause me headaches. Interf

Re: In need of some help with NSToolbarItem

2008-03-04 Thread Matthew Delves
On 05/03/2008, at 9:38 AM, Peter Ammon wrote: On Mar 4, 2008, at 1:55 PM, Matthew Delves wrote: Greetings, I've been reading through some of the apple documentation and have a basic understanding of what needs to be done when creating an NSToolbarItem subclass that contains a custom view

Re: General MVC and ownership question

2008-03-04 Thread Graham
Thanks for picking up the ball on this one Jens, much appreciated. I had more or less come to the same conclusion about having one controller per view, with the data model owning the controllers. My actual situation is that the "data model" is in reality a vector drawing stack with layers,

Re: Localise between different versions of English

2008-03-04 Thread mmalc crawford
On Mar 4, 2008, at 2:43 PM, Alexander Hartner wrote: I have an application which I would like to localise, however i need to support two flavours of English, one for the British edition and another for the US. In particular the word "Synchronize / Synchronise) is cause me headaches. Interf

Changing IKPictureTaker flash effect?

2008-03-04 Thread Phil
Just wondering if anyone knows of a way to either disable the 'flash' effect, or better yet change the color it flashes to, when the takeAPicture is called? Thanks, Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Localise between different versions of English

2008-03-04 Thread Sean McBride
On 3/4/08 3:51 PM, Nick Zitzmann said: >You can use the lproj names "en_GB" for British English, "en_US" for >American English, and I think "en_AU" for Australian English. Those >are the three that are available in the International preference pane. There's also Canadian English (en_CA), and perh

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Seth Willits
On Mar 4, 2008, at 8:56 AM, Ben Einstein wrote: Thanks all. These work okay, I'm just surprised the old functionality is gone. It seemed much more intuitive to just click on the "tab" than browsing the view hierarchy. I couldn't agree more. The keyboard shortcut was buried. I didn't know

Re: In need of some help with NSToolbarItem

2008-03-04 Thread Peter Ammon
On Mar 4, 2008, at 2:59 PM, Matthew Delves wrote: On 05/03/2008, at 9:38 AM, Peter Ammon wrote: On Mar 4, 2008, at 1:55 PM, Matthew Delves wrote: Greetings, I've been reading through some of the apple documentation and have a basic understanding of what needs to be done when creating

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Justin Williams
On 3/4/08, Seth Willits <[EMAIL PROTECTED]> wrote: > > On Mar 4, 2008, at 8:56 AM, Ben Einstein wrote: > > I'd like to see it work like switching between segments in a segmented > control. There's a popup in the inspector that lets you pick one. This is how I think it should work as well. I've f

Re: Traversing windows with Cocoa

2008-03-04 Thread aldo kurnia
Actually I invented another solution for this by using NSTask to get list of PIDs, and then use the Accessiblity API to traverse the children windows of each process. Yours is probably more efficient though. Thanks! Stephan Burlot <[EMAIL PROTECTED]> wrote: Hi, I've posted some code that does w

Re: Kiosk App

2008-03-04 Thread Stéphane Sudre
On Mar 4, 2008, at 6:51 PM, Thomas Bartelmess wrote: Hello everyone. I would like to add an Kiosk mode to my Application. Does somebody know how I can lock the Computer for every kind of Keyboard Inputs (Just not for one Compo to leave the Kisok) Best would be if the mouse wouldn't be there

Re: Interface Builder (almost) supports NSToolbar

2008-03-04 Thread Brian Krisler
I am not sure I fully understand your solution. I can bind all my IB created NSToolbarItems, however there is no way to change the identifier on already created items from within the awakeFromNIB, or from init. If I add the item using the delegate, I just get a duplicate item in the toolbar.

Re: lock Keyboard for Kisok-Mode

2008-03-04 Thread Andrew Farmer
On 04 Mar 08, at 09:02, Herr Thomas Bartelmess wrote: I would like to add an Kiosk mode to my Application. Does somebody know how I can lock the Computer for every kind of Keyboard Inputs (Just not for one Compo to leave the Kisok) Best would be if the mouse wouldn't be there too. If you rea

  1   2   >