Re: “EXC_BAD_ACCESS” on Custom TableV iew with custom NSCell when clicking.

2010-02-18 Thread Gustavo Pizano
Hello Corbin. ok, so I read your blog post, its great, I love it. I followed what you said there with my application, when the app crashes I see the address, I search for it and I see only one result, so I click the arrow next to the address to check the history and I have this situation. firs

Re : Proper way to initialize application support file

2010-02-18 Thread Peter Hudson
" Files that are necessary should be inside your app bundle, usually." I put some files into the app bundle which were essential for the app to run - but also needed to be modified at run time. The first time our app was installed on a server ( for a number of users to have access

Re: Re : Proper way to initialize application support file

2010-02-18 Thread Graham Lee
On 18 Feb 2010, at 09:36, Peter Hudson wrote: > " Files that are necessary should be inside your app bundle, usually." > > > > I put some files into the app bundle which were essential for the app to run - > but also needed to be modified at run time. > Those definitely shouldn't be cha

cocoa API to get List of hard disk Partitions

2010-02-18 Thread Arjun SM
Hi, Can any one help me out on How I can get the List of all hard disk partions mounted on the the System along with the Icon, just like Disk Utility application does. (Image below.) [image: ?ui=2&view=att&th=126df98c109f6b52&attid=0.1&disp=attd&realattid=ii_126df98c109f6b52&zw] I have used

Re: Spotlight while running windows modal

2010-02-18 Thread jonat...@mugginsoft.com
On 18 Feb 2010, at 05:30, Kiel Gillard wrote: > Hi all, > > I'm trying to cancel a modal NSAlert when Spotlight determines a file exists > in the file system. I create and start the NSMetadataQuery before I run the > alert modal. However I do not receive notifications of changes to my metadata

Re: cocoa API to get List of hard disk Partitions

2010-02-18 Thread Kiel Gillard
On 18/02/2010, at 8:44 PM, Arjun SM wrote: > Hi, > > Can any one help me out on How I can get the List of all hard disk > partions mounted on the the System along with the Icon, just like Disk > Utility application does. (Image below.) > > > [image: > ?ui=2&view=att&th=126df98c109f6b52&attid=

NSPropertyListSerialization error with apparently OK data

2010-02-18 Thread Graham Cox
I have a structure I'm trying to write as an xml plist. The structure is an array of dictionaries, each dictionary contains a string "catname" and another array of dictionaries, "items". The second level of dictionaries consist of two strings each, "id" and "name". Example: (gdb) po catList (

Re: NSPropertyListSerialization error with apparently OK data

2010-02-18 Thread Matt Gough
Don't know, but maybe 'id' is reserved. I seem to recall a similar issue with archiving strings that were "NULL" or "nil" or something. Matt On 18 Feb 2010, at 11:25:10, Graham Cox wrote: > I have a structure I'm trying to write as an xml plist. The structure is an > array of dictionaries, eac

Re: NSPropertyListSerialization error with apparently OK data

2010-02-18 Thread Graham Cox
On 18/02/2010, at 10:29 PM, Matt Gough wrote: > Don't know, but maybe 'id' is reserved. Well, I just tried changing that to something else and I get the same problem. I also tried using NSPropertyListBinaryFormat_v1_0 and I still get the same error. --Graham ___

Re: NSPropertyListSerialization error with apparently OK data

2010-02-18 Thread Jean-Daniel Dupas
Don't think so, archiving is not serialization and it's just a dump of the object in XML/binary format, so you can't have reserved keyword. The plist look definitively OK. (it's even possible to import it in Plist Editor as a text formatted plist if you remove the extra '{' '}' enclosing the

Re: NSPropertyListSerialization error with apparently OK data

2010-02-18 Thread Graham Cox
On 18/02/2010, at 10:44 PM, Jean-Daniel Dupas wrote: > And you can also try with subset of the list to determine if a specific entry > in your list is the culprit. OK, seems likely to be the problem, unless it's the sheer size. The list has several thousand entries, but I haven't read of any

NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
Hi, I am writing an app that needs to be able to target 10.5 at least and hopefully 10.4, but I have just found that the way that table views are handled has changed - does anyone have a link to some documentation for the old way to do things? Many thanks, Mikey___

Re : Proper way to initialize application support file

2010-02-18 Thread Peter Hudson
I'm getting confused. It seems that any files that are 'essential to the running of the app' are placed in the bundle. It also seems that any files that are 'essential to the running of the app', if they are in the bundle, must not be modified. The type of files which I put in the bund

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Graham Cox
On 18/02/2010, at 11:07 PM, Michael Davey wrote: > I have just found that the way that table views are handled has changed That's news to the rest of us! NSTableView dataSource still works just fine. --Graham ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
Weird, cos when I change the Active SDK in Xcode to 10.5 I get the following error: cannot find protocol declaration for 'NSTableViewDataSource' And the docs here: http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Protocols/NSTableDataSource_Protocol/Reference

Re: Re : Proper way to initialize application support file

2010-02-18 Thread Graham Cox
On 18/02/2010, at 11:09 PM, Peter Hudson wrote: > I'm getting confused. > > It seems that any files that are 'essential to the running of the app' are > placed in the bundle. > > It also seems that any files that are 'essential to the running of the app', > if they are in the bundle, must

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Graham Cox
On 18/02/2010, at 11:21 PM, Michael Davey wrote: > Weird, cos when I change the Active SDK in Xcode to 10.5 I get the following > error: > > cannot find protocol declaration for 'NSTableViewDataSource' > > And the docs here: > > http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Refe

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Mike Abdullah
All that's changed is it's gone from an informal protocol: @interface NSObject (NSTableViewDataSource) ... @end to a formal one: @protocol NSTableViewDataSource ... @end On 18 Feb 2010, at 12:07, Michael Davey wrote: > Hi, > > I am writing an app that needs to be able to target 10.5 at lea

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
My class is describes as follows: @interface AppController : NSObject I tried removing NSObject and putting it there, but that did not work - any clues? Thanks, btw On 18 Feb 2010, at 12:28, Graham Cox wrote: > > On 18/02/2010, at 11:21 PM, Michael Davey wrote: > >> Weird, cos when I chan

Re: Proper way to initialize application support file

2010-02-18 Thread Stuart Malin
On Feb 18, 2010, at 12:30 AM, Paul Johnson wrote: > I see the data I get from the internet as not in the strictest sense > 'necessary' for the program to run, just that it would be unable to do > very much without it. So using my loose definition, the Application > Support folder would be the plac

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Graham Cox
On 18/02/2010, at 11:37 PM, Michael Davey wrote: > My class is describes as follows: > > @interface AppController : NSObject > > > I tried removing NSObject and putting it there, but that did not work - any > clues? > > Thanks, btw > Yes, do what I told you, remove the NSTableViewDataSou

Fwd: Re : Proper way to initialize application support file

2010-02-18 Thread Peter Hudson
Begin forwarded message: From: Peter Hudson Date: 18 February 2010 12:46:55 GMT To: Graham Cox Subject: Re: Re : Proper way to initialize application support file I started out this way to avoid exactly the problem you get from requiring users to move critical files around. Most of our u

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
OK, just did some reading on informal protocols, thanks a lot for your help Mikey On 18 Feb 2010, at 12:40, Graham Cox wrote: > > On 18/02/2010, at 11:37 PM, Michael Davey wrote: > >> My class is describes as follows: >> >> @interface AppController : NSObject >> >> >> I tried removing NSO

Re: Re : Proper way to initialize application support file

2010-02-18 Thread Graham Cox
On 18/02/2010, at 11:46 PM, Peter Hudson wrote: > I started out this way to avoid exactly the problem you get from requiring > users to move critical files around. Most of our users are not comfortable > with computers, let alone moving files around ! Add in the problem of > making sure the

[SOLVED]: NSPropertyListSerialization error with apparently OK data

2010-02-18 Thread Graham Cox
On 18/02/2010, at 10:51 PM, Graham Cox wrote: Turns out one of the "arrays" was actually a set, and thus invalid in a plist. Took a long time to realise that -valueForKey: on NSSet returns another set, not an array. Once realised, simply fixed. Five hours later... D'oh! --Graham

super call in the middle of a block of code ..

2010-02-18 Thread Roland King
I have this piece of code in my UITableViewController subclass (that is also my tableview delegate) -(void)setEditing:(BOOL)editing animated:(BOOL)animated { if( editing ) preEditPath = [ [ [ self tableView ] indexPathForSelectedRow ] retain ]; [ super se

Re: The 64 pixels width limit on Windows

2010-02-18 Thread Eric Gorr
On Feb 17, 2010, at 9:52 PM, Hank Heijink (Mailinglists) wrote: > On Feb 17, 2010, at 4:55 PM, Eric Gorr wrote: > >> On Feb 4, 2010, at 3:13 PM, Hank Heijink (Mailinglists) wrote: >> >>> On Feb 4, 2010, at 2:51 PM, Eric Gorr wrote: >>> When I am resizing my window, I have a delegate metho

Re: The 64 pixels width limit on Windows

2010-02-18 Thread Hank Heijink (Mailinglists)
On Feb 18, 2010, at 10:08 AM, Eric Gorr wrote: Measure from the left edge of the window to the rightmost edge of the maximize button: 64 pixels. I doubt you can adjust it, but who knows - maybe if you get rid of the title bar? >>> >>> Can one override the 64 pixel limit? >> >> I

Re: The 64 pixels width limit on Windows

2010-02-18 Thread Eric Gorr
On Feb 18, 2010, at 10:21 AM, Hank Heijink (Mailinglists) wrote: > On Feb 18, 2010, at 10:08 AM, Eric Gorr wrote: > > Measure from the left edge of the window to the rightmost edge of the > maximize button: 64 pixels. I doubt you can adjust it, but who knows - > maybe if you get ri

Re: super call in the middle of a block of code ..

2010-02-18 Thread Luke the Hiesterman
This seems fine to me. Generally, when subclassing, the contract is that you must call super - there is nothing said about where in your method you do so. Luke On Feb 18, 2010, at 5:58 AM, Roland King wrote: > I have this piece of code in my UITableViewController subclass (that is also > my ta

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Sean McBride
On 2/18/10 12:07 PM, Michael Davey said: >I am writing an app that needs to be able to target 10.5 at least and >hopefully 10.4, but I have just found that the way that table views are >handled has changed - does anyone have a link to some documentation for >the old way to do things?

Re: “EXC_BAD_ACCESS” on Custom TableV iew with custom NSCell when clicking.

2010-02-18 Thread Corbin Dunn
On Feb 18, 2010, at 12:24 AM, Gustavo Pizano wrote: > Hello Corbin. > > ok, so I read your blog post, its great, I love it. > > I followed what you said there with my application, when the app crashes I > see the address, I search for it and I see only one result, so I click the > arrow next

Animating an Attached Window (was: Drawing Attention to a Control...)

2010-02-18 Thread Jerry Krinock
On 2010 Feb 03, at 14:36, jonat...@mugginsoft.com wrote: > On 3 Feb 2010, at 21:04, Jerry Krinock wrote: > >> An app I'm developing has a multi-tabbed window. Sometimes one of the Error >> Recovery Options is to click into some tab and adjust control Foo. And in >> many cases, either due to

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Michael Davey
Thanks for that! On 18 Feb 2010, at 16:05, Sean McBride wrote: > On 2/18/10 12:07 PM, Michael Davey said: > >> I am writing an app that needs to be able to target 10.5 at least and >> hopefully 10.4, but I have just found that the way that table views are >> handled has changed - does anyone hav

Re: Animating an Attached Window (was: Drawing Attention to a Control...)

2010-02-18 Thread jonat...@mugginsoft.com
> > Thanks, Jonathan. Using Matt Gemmel's idea of making an attached window, I > wrote a class that makes a fat arrow with a blue gradient that looks like the > one you get when you click a menu item after searching in Help. > > Now, I'd like it to be animated, like Apple's fat blue Help arrow

Determine smallest height of vertical scrollbar

2010-02-18 Thread Eric Gorr
Other then creating a dummy NSScoller and incrementally decreasing it's height until usableParts returns 0, is there any easy way to determine what the minimum height of a vertical scrollbar should be so that usableParts will not return NSNoScrollerParts? What I need to be able to do is limit t

Re: “EXC_BAD_ACCESS” on Custom TableV iew with custom NSCell when clicking.

2010-02-18 Thread Gustavo Pizano
HEllo Corbin, It seem its fixed, I didn't realize an ivar in the Custom NSCell, I forgot I put it there thinking in using it to hold the name of the user and be able to sort the table, which right now I can;t tell how to do it, I took out that ivar, and it hasn't crash so far.. still Im gonna k

How do I get keyboard events in an NSStatusWindowLevel window while my application is not frontmost?

2010-02-18 Thread Daniel Káčer
After creating a translucent NSPanel and I want to get keyboard events in this window. It seems that there are only keyboard events when my application is the active application while I want keyboard events even when my application isn't active but the window is visible. Basically I want be

Re: “EXC_BAD_ACCESS” on Custom TableV iew with custom NSCell when clicking.

2010-02-18 Thread Corbin Dunn
On Feb 18, 2010, at 9:17 AM, Gustavo Pizano wrote: > HEllo Corbin, > It seem its fixed, I didn't realize an ivar in the Custom NSCell, I forgot I > put it there thinking in using it to hold the name of the user and be able to > sort the table, which right now I can;t tell how to do it, I took

Re: How do I get keyboard events in an NSStatusWindowLevel window while my application is not frontmost?

2010-02-18 Thread Jens Alfke
On Feb 18, 2010, at 9:22 AM, Daniel Káčer wrote: After creating a translucent NSPanel and I want to get keyboard events in this window. It seems that there are only keyboard events when my application is the active application while I want keyboard events even when my application isn't act

Hillegass printing challenge

2010-02-18 Thread Michael de Haan
Hi all, May I ask about an issue I am having adding page numbers to a print out. I implemented the following method: - (void)drawPageBorderWithSize:(NSSize)borderSize { // NSPrintOperation *po = [NSPrintOperation currentOperation]; //NSPrintInfo *pi = [po printInfo]; NSRect curren

Re: How do I get keyboard events in an NSStatusWindowLevel window while my application is not frontmost?

2010-02-18 Thread Daniel Káčer
thank you very much ... your second hint was what I needed to know :) Donald On Feb 18, 2010, at 19:03 , Jens Alfke wrote: On Feb 18, 2010, at 9:22 AM, Daniel Káčer wrote: After creating a translucent NSPanel and I want to get keyboard events in this window. It seems that there are only ke

NSWindow - how to resize it keeping aspect ratio?

2010-02-18 Thread Alexander Bokovikov
Hi, All, I'm sorry if this is a stupid question, but I don't see an evident answer... I need the subj, but don't see appropriate NSWindow method... Am I missing something? Any help would be appreciated. Best regards, Alexander ___ Cocoa-dev mai

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-18 Thread Hank Heijink (Mailinglists)
On Feb 18, 2010, at 1:55 PM, Alexander Bokovikov wrote: > Hi, All, > > I'm sorry if this is a stupid question, but I don't see an evident answer... > I need the subj, but don't see appropriate NSWindow method... Am I missing > something? Implement the NSWindow delegate method - (NSSize)windowW

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-18 Thread Jim Correia
On Feb 18, 2010, at 1:55 PM, Alexander Bokovikov wrote: > I'm sorry if this is a stupid question, but I don't see an evident answer... > I need the subj, but don't see appropriate NSWindow method... Am I missing > something? -[NSWindow setAspectRatio:] -[NSWindow setContentAspectRatio:] - Jim

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-18 Thread Eric Gorr
On Feb 18, 2010, at 1:55 PM, Alexander Bokovikov wrote: > Hi, All, > > I'm sorry if this is a stupid question, but I don't see an evident answer... > I need the subj, but don't see appropriate NSWindow method... Am I missing > something? You could check out NSWindow's setAspectRatio or setCon

NSTableView with PopUpButtonCell column with different content per row

2010-02-18 Thread Sean McBride
Hi all, I'm looking for some pointers on how to have a TableView where one column uses a PopUpButtonCell who's contents need to be different for different rows. A contrived example: OS Name OS Version So in the 'OS Version' column, I want the popup's contents to be either one l

Re: NSTableView with PopUpButtonCell column with different content per row

2010-02-18 Thread Kyle Sluder
On Thu, Feb 18, 2010 at 12:38 PM, Sean McBride wrote: > So in the 'OS Version' column, I want the popup's contents to be either > one list or another list depending on 'OS Name' of any given row. > > Any suggestions? Hook yourself up as the delegate of the column's popup button cell's menu, and i

Re: NSTableView with PopUpButtonCell column with different content per row

2010-02-18 Thread Quincey Morris
On Feb 18, 2010, at 12:38, Sean McBride wrote: > I'm looking for some pointers on how to have a TableView where one > column uses a PopUpButtonCell who's contents need to be different for > different rows. > > A contrived example: > > OS Name OS Version > > > So in the 'OS Vers

Re: NSTableView with PopUpButtonCell column with different content per row

2010-02-18 Thread Jerry Krinock
On 2010 Feb 18, at 13:30, Quincey Morris wrote: > you could simply have your window controller provide an array property with > version strings for the current OS (along with a KVO dependency to keep the > property in sync with the current OS), and bind the popup content to that > array. > >

Re: Hillegass printing challenge

2010-02-18 Thread Graham Cox
On 19/02/2010, at 6:06 AM, Michael de Haan wrote: > Hi all, > May I ask about an issue I am having adding page numbers to a print out. > I implemented the following method: > > > - (void)drawPageBorderWithSize:(NSSize)borderSize > { > // NSPrintOperation *po = [NSPrintOperation currentOperati

NSTableColumn's 'fontSize' Binding: Just Doesn't Work?

2010-02-18 Thread Jerry Krinock
I know how to control the font size in a table -- the hard way -- by subclassing NSTableColumn and overriding -dataCellForRow. Hoping for an easy way, I noticed that NSTableView has a 'fontSize' binding... fontSize. An integer value that determines the size, in points, of the font used to dis

Re: [SOLVED] NSTableColumn's 'fontSize' Binding: Just Doesn't Work?

2010-02-18 Thread Jerry Krinock
Sorry, I just found the answer, in the next paragraph: "Binding is Read Only" Off to do it the hard way ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Use of NSView enterFullScreenMode withOptions causes warning about deprecated CPSSetForegroundOperationState

2010-02-18 Thread Shayne Wissler
Hello, In my application I have the following call: [self enterFullScreenMode:[NSScreen mainScreen] withOptions:0]; This function is documented here, and does not appear to be deprecated: http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/

Re: NSTableColumn's 'fontSize' Binding: Just Doesn't Work?

2010-02-18 Thread Keary Suska
On Feb 18, 2010, at 5:29 PM, Jerry Krinock wrote: > I know how to control the font size in a table -- the hard way -- by > subclassing NSTableColumn and overriding -dataCellForRow. Hoping for an easy > way, I noticed that NSTableView has a 'fontSize' binding... Why do that, when you could just

setAction:@selector is not working ?

2010-02-18 Thread David M. Cotter
i'm going to do a popup menu i run thru all the items and call [myMenuItem setAction:@selector(myFunction:)]; upon first run, my "myFunction" never gets called with the result of the menu item pick. but then, it works 100% of the time *after* i switch out then back into my app whaaa?? does a

Re: setAction:@selector is not working ?

2010-02-18 Thread Graham Cox
On 19/02/2010, at 12:53 PM, David M. Cotter wrote: > i'm going to do a popup menu > i run thru all the items and call > > [myMenuItem setAction:@selector(myFunction:)]; > > upon first run, my "myFunction" never gets called with the result of the menu > item pick. > > but then, it works 100%

Re: NSPredicate regex

2010-02-18 Thread martin halter
hello list I'd like to check a bunch of Strings if they contain the word "cache". The strings are actually paths and I check the last path component. I tried to use CoreText to detect words, but the API was a bit overwhelming. So I tried NSPredicate which worked like a charm. It detects the wo

Re: Quartz2D paths from vector?

2010-02-18 Thread Brian "Moses" Hall
If it'll work with your particular application, I'd say simplest is export PDF with a transparent background and import it into an NSImageView or whatever. -- Moses Hall blugs.com On Feb 17, 2010, at 2:05 PM, cocoa-dev-requ...@lists.apple.com wrote: However this is quite difficult to dra

Re: setAction:@selector is not working ?

2010-02-18 Thread David M. Cotter
target set to self this is a menu item class override, the "myFunction" selector is part of the menu item class note it works all the time except for the first time after switching out then in On Feb 18, 2010, at 6:32 PM, Graham Cox wrote: > > On 19/02/2010, at 12:53 PM, David M. Cotter wrote:

Help with creating CustomViews

2010-02-18 Thread Jean-Henri Duteau
Hi all, I'm a newcomer when it comes to Cocoa development. I have some good books and they discuss the possibility of CustomViews but the views they create aren't the type that I'm interested. I've scoured the web and haven't found exactly the help I need and I've tried the trial-and-error me

Re: Appropriate -setWantsLayer: timing

2010-02-18 Thread Simon Wolf
Hi Keith, In addition to David's reply, a small tip is that you can also get things working if you call setWantsLayer: and then follow it by assigning a layer: [self setWantsLayer:YES]; [self setLayer:[CALayer layer]]; Otherwise the layer is added at some undetermined future point which may not

Implementing Ken-burns Effect

2010-02-18 Thread Kalyanraju M
I am trying to implement Ken-burns effect for iPhone. Implemented Zoom-In And Zoom-Out. Got struck while implementing "Panning".  Any ideas to implement "Panning".  And need to know the flow of effects like  1 st panning then Zoom-In And Zoom-Out i.e order of effects. Thanks in advance for your

Re: Appropriate -setWantsLayer: timing

2010-02-18 Thread Simon Wolf
On 17 Feb 2010, at 09:23, Keith Duncan wrote: > > On 16 Feb 2010, at 21:40, David Duncan wrote: > >>> Calling it in -initWithFrame: is too early and the view fails to 'draw'. >> >> If you are creating the view programmatically, -initWithFrame: should be >> fine. If your loading from a nib, the

Real-Time Validation in a NSTextField.

2010-02-18 Thread Abhinay Kartik Reddyreddy
I have a NSTextField which should only accept numbers in a certain range say (-72000.00 to 72000.00). I tried using NSFormatter whihc worked partially. when i hit any alphabet character on the keyboard, the value in the NSTextField stays numeric but the cursor moves forward which is not desire

close: before NSWindowWillCloseNotification

2010-02-18 Thread Charles Burnstagger
Hi all, I have a typical window/controller on OS X 10.6.2. When I click the window's close box, my window controller receives the close: message before it recevies the windowWillCloseNotification. This seems to be backwards in sequence to me. Any ideas why this happens and how to avoid it? I n

Re: Appropriate -setWantsLayer: timing

2010-02-18 Thread Scott Anguish
On Feb 16, 2010, at 5:45 PM, Simon Wolf wrote: >> >> I'm wondering when writing a layer hosting view, when the most appropriate >> time is to set the layer and call -setWantsLayer:YES? >> >> Calling it in -initWithFrame: is too early and the view fails to 'draw'. > > In addition to David's r

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Scott Anguish
On Feb 18, 2010, at 7:28 AM, Graham Cox wrote: > In 10.6, NSTableViewDataSource became a formal protocol, where previously it > was an informal one. While the docs are strictly correct, they're a bit > misleading since the methods of the protocol have been available since 10.0 This has been co

Re: NSPredicate regex

2010-02-18 Thread BJ Homer
I've found Reggy (http://reggyapp.com/) to be *extremely* useful in debugging regular expressions. -BJ ___ 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

Re: Implementing Ken-burns Effect

2010-02-18 Thread Jens Alfke
On Feb 16, 2010, at 11:18 PM, Kalyanraju M wrote: > I am trying to implement Ken-burns effect for iPhone. Implemented Zoom-In And > Zoom-Out. Got struck while implementing "Panning". > > Any ideas to implement "Panning". Panning's just changing the x/y offset, while zooming changes the x/y s

Re: close: before NSWindowWillCloseNotification

2010-02-18 Thread Jens Alfke
On Feb 18, 2010, at 7:47 PM, Charles Burnstagger wrote: > I need to recieve the notification *before* I receive close: since I want to > do some stuff before the window goes away. What kind of stuff? The window still exists when you get the windowWillClose notification, so you can safely call

How to detect if mouse on border of view

2010-02-18 Thread Mazen M. Abdel-Rahman
Hi All, I was wondering if there is a straight forward away to know if the mouse is on the border of a view? I know how to detect if the mouse enters a view area by using NSTrackingArea - but how can I tell if the mouse is on a border? I would like to replicate iCal's behavior where a user ca

Re: How to detect if mouse on border of view

2010-02-18 Thread Graham Cox
On 19/02/2010, at 3:44 PM, Mazen M. Abdel-Rahman wrote: > I was wondering if there is a straight forward away to know if the mouse is > on the border of a view? I know how to detect if the mouse enters a view > area by using NSTrackingArea - but how can I tell if the mouse is on a > border?

Re: How to detect if mouse on border of view

2010-02-18 Thread Jens Alfke
On Feb 18, 2010, at 8:44 PM, Mazen M. Abdel-Rahman wrote: > I was wondering if there is a straight forward away to know if the mouse is > on the border of a view? I know how to detect if the mouse enters a view > area by using NSTrackingArea - but how can I tell if the mouse is on a > border?

Re: NSPredicate regex

2010-02-18 Thread Stephen J. Butler
On Tue, Feb 16, 2010 at 9:55 AM, martin halter wrote: >    NSString *regex = @"(?:.*[\\s\\W0-9])*cache(?:[\\s\\W0-9].*)*"; Your regex is pathological. It's not hard to confuse the matcher with really convoluted regular expressions. Consider this: how is your pattern any different from... NSStrin