Re: regexkit [Using NSPredicate to parse strings]

2008-03-04 Thread Jens Alfke
On 4 Mar '08, at 8:55 PM, John Engelhart wrote: It's sort of ambiguous if the /usr/lib/libicucore library is 'supported' or not. I believe the general consensus is that it's not really there for public use, hence the missing headers, but it's also not verboten. Yeah, this is annoying. I

Re: Localise between different versions of English

2008-03-04 Thread Jens Alfke
On 4 Mar '08, at 3:23 PM, Sean McBride wrote: There's also Canadian English (en_CA), and perhaps others too... The ISO is in the process of adding "en_LOL" for Lolcat, aka Kitteh or Cat Pidgin[1]. (If you don't think there's a need for this, consider what HTTP "Language:" header value sho

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

2008-03-04 Thread Stuart Malin
Thank you everybody for your thoughts and suggestions. I hope some of the conversation that was stirred up was useful. NSString's initWithBytes:len:encoding: worked. It did so because I had a misunderstanding -- in most cases my source string is UTF-8 (not UTF-16), and the source string is byte

NSOutlineView slow update w Core Data

2008-03-04 Thread David Melgar
I have an NSOutlineView subclass bound to a NSTreeController subclass which is bound to a simple data model representing a hierarchical tree structure. I've implemented drag and drop by having the view send a custom message to my NSTreeController subclass who then updates the model. The problem is

CATiledLayer too slow to update

2008-03-04 Thread Colin Cornaby
I'm using a CATiledLayer to render a large background in my CoreAnimation composition. A CATiledLayer seems to be best suited for the job due to the size of the composition. However, one problem I am running into is when the tiles become very small, the layer can be very slow to update. Thi

Re: regexkit [Using NSPredicate to parse strings]

2008-03-04 Thread John Engelhart
On Mar 4, 2008, at 12:50 PM, 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. [disclosure: I am the author of RegexKit] Hard to make e

Re: Undo and Core Data issue

2008-03-04 Thread Michael Latta
I call processPendingChanges from both the *Will* and *Did* notifications. Michael On Mar 4, 2008, at 8:45 PM, Dave Fernandes wrote: Did you also call processPendingChanges before trying to undo? You may get flakey undo behavior if not. On Mar 4, 2008, at 11:31 PM, Michael Latta wrote: I

Re: Kiosk App

2008-03-04 Thread john chen
You can take a look at http://cocoadevcentral.com/articles/28.php John On 3/4/08, Thomas Bartelmess <[EMAIL PROTECTED]> 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

Re: Undo and Core Data issue

2008-03-04 Thread Dave Fernandes
Did you also call processPendingChanges before trying to undo? You may get flakey undo behavior if not. On Mar 4, 2008, at 11:31 PM, Michael Latta wrote: I have a Core Data based application that is running into issues with Undo/Redo. When I select undo the notifications for Undo happen, b

Undo and Core Data issue

2008-03-04 Thread Michael Latta
I have a Core Data based application that is running into issues with Undo/Redo. When I select undo the notifications for Undo happen, but the values in the managed object do not change. I have tried adding processPendingChanges in the notification handler, but that did nothing. The valu

Re: KVO autonotifying complaining about custom setter return value

2008-03-04 Thread Chris Suter
On 05/03/2008, at 2:10 PM, Kyle Sluder wrote: On Tue, Mar 4, 2008 at 11:49 AM, Jim Turner <[EMAIL PROTECTED]> wrote: 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

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

2008-03-04 Thread Kyle Sluder
On Tue, Mar 4, 2008 at 4:58 PM, Meik Schuetz <[EMAIL PROTECTED]> wrote: > 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

Re: Panel in framework

2008-03-04 Thread Kyle Sluder
On Tue, Mar 4, 2008 at 10:12 PM, Chris Suter <[EMAIL PROTECTED]> wrote: > I don't understand what you're trying to say here. Are you trying to > say that you can't have resources in frameworks? Sure you can. No that's in fact the exact opposite of what I'm trying to say. Eh, I didn't phrase it

Re: Panel in framework

2008-03-04 Thread Chris Suter
On 05/03/2008, at 1:59 PM, Kyle Sluder wrote: On Tue, Mar 4, 2008 at 9:49 PM, Brad Peterson <[EMAIL PROTECTED]> wrote: That is, I want to display the panel modally, but the panel only exists as part of a framework I'm using in my app. Methinks you don't quite understand what frameworks are

Re: KVO autonotifying complaining about custom setter return value

2008-03-04 Thread Kyle Sluder
On Tue, Mar 4, 2008 at 11:49 AM, Jim Turner <[EMAIL PROTECTED]> wrote: > 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. > Aut

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

2008-03-04 Thread Kyle Sluder
On Tue, Mar 4, 2008 at 10:04 PM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > Have you checked out TN2063? > http://developer.apple.com/technotes/tn2005/tn2083.html And of course I meant TN2083. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

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

2008-03-04 Thread Kyle Sluder
Have you checked out TN2063? http://developer.apple.com/technotes/tn2005/tn2083.html That document seems to indicate that you can't necessarily spawn a GUI session, but you can set up your job so it runs in the GUI bootstrap namespace. --Kyle Sluder ___

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

2008-03-04 Thread Deborah Goldsmith
You don't need the NSMutableData: NSString *str = [[[NSString alloc] initWithBytes:s length:len encoding:NSUTF8StringEncoding] autorelease]; ...assuming it's really UTF-8. If it's wchar_t and you know it's Unicode, use NSUTF32StringEncoding (only available on 10.5 or later). If it's UTF-1

Re: Panel in framework

2008-03-04 Thread Kyle Sluder
On Tue, Mar 4, 2008 at 9:49 PM, Brad Peterson <[EMAIL PROTECTED]> wrote: > That is, I want to display the panel modally, but the > panel only exists as part of a framework I'm using in > my app. Methinks you don't quite understand what frameworks are and how they work. A framework is just a sh

Panel in framework

2008-03-04 Thread Brad Peterson
Hi all, Is it possible to connect a panel whose resources & code live in a framework to a window in an executable using that framework? That is, I want to display the panel modally, but the panel only exists as part of a framework I'm using in my app. Any pointers would be a great help! Thanks!

Re: Interface Builder (almost) supports NSToolbar

2008-03-04 Thread Jonathan Hess
Hey Brian - Until IB allows you to set the identifier, I would do this instead: Add an outlet to your controller, something like "IBOutlet NSToolbarItem *myItem". Connect that to the item who's identifier you are interested in IB. Now, every place were you wanted to use a custom identifie

Re: Interface Builder (almost) supports NSToolbar

2008-03-04 Thread Quincey Morris
On Mar 4, 2008, at 18:04, Brian Krisler wrote: 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. Sorry, I didn't realize that you c

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

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: 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: 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: 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: 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 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: 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

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 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

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: 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: 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: 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

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: 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

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: 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

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: 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

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: 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: 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: 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: 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: 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: 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

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: 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

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 _

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

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: 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

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

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: 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

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: 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

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

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

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

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

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: 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: 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: 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 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: 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: 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

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: 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

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: 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: 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: 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

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: 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: 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 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

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 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

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: 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: 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: 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: 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: 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: 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 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 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: 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: 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: 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: 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

  1   2   >