lastKeyViewTraversingSubviewsBeginningWithView

2010-02-21 Thread Arved von Brasch
Hi Cocoa List, I'm occasionally seeing the following warning from the runtime while testing my application: warning: _lastKeyViewTraversingSubviewsBeginningWithView: encountered 5000 views!!! It usually occurs when a NSCollectionView is being refreshed, but not every time. I've tried Googlin

lastKeyViewTraversingSubviewsBeginningWithView

2010-02-21 Thread Arved von Brasch
Hi Cocoa List, I'm occasionally seeing the following warning from the runtime while testing my application: warning: _lastKeyViewTraversingSubviewsBeginningWithView: encountered 5000 views!!! It usually occurs when a NSCollectionView is being refreshed, but not every time. I've tried Googlin

Re: Cocoa equivalent for 'InstallApplicationEventHandler'

2010-02-21 Thread Vikram Sethi
Hi all, Thanks for the prompt responses. As Jesper mentioned, I would like my app to work on 10.5 as well. I forgot to mention that in my earlier mail. >> "Ordinarily it doesn't make any sense to type into an app that has no open windows. If you have special hot keys that should do something eve

Problem with one-way Core Data relationship not persisting

2010-02-21 Thread Greg Reichow
I have a problem with the core data object graph not properly persisting: Managed Object A (Car) has a one-way, one-to-many relationship to several Managed Object B's. (Tires) When I create the object graph, I use the standard generated relationship set mutator methods to setup the relationship

Re: lastKeyViewTraversingSubviewsBeginningWithView

2010-02-21 Thread Joe Ranieri
On 2/21/10 5:53 AM, Arved von Brasch wrote: Hi Cocoa List, I'm occasionally seeing the following warning from the runtime while testing my application: warning: _lastKeyViewTraversingSubviewsBeginningWithView: encountered 5000 views!!! It usually occurs when a NSCollectionView is being refre

Re: Extract keys, values from 'usrf' Record Type NSAppleEventDescriptor?

2010-02-21 Thread John Pannell
Hi Jerry- You're going to want to look at NSAppleEventDescriptor's numberOfItems, keywordForDescriptorAtIndex: and descriptorAtIndex: methods, and play around with them a little. One thing to keep in mind is that the lists are 1-based, so start looking at index 1 :-) It's been quite some time

Re: setAction:@selector is not working ?

2010-02-21 Thread Graham Cox
On 22/02/2010, at 2:11 AM, slasktrattena...@gmail.com wrote: > id string = [NSString stringWithCString:sel_getName(command) > encoding:NSMacOSRomanStringEncoding]; Just a tip: look up NSStringFromSelector(); --Graham ___ Cocoa-dev mailing li

UILabel updating from a button click

2010-02-21 Thread Michael Davey
Hi, I have, for a bit of fun, taken my first steps out of Mac development and into iPhone development, and have encountered a bit of a problem. Basically, what I want to do is update a UILabel when a button is clicked in the view, but I want to be able to update it in intervals with different

Re: UILabel updating from a button click

2010-02-21 Thread Luke the Hiesterman
Please don't use sleep() on the main thread of a UI application.. If you really want to do this, I'd suggest using an ivar or a static variable to facilitate going through the operation using performSelector:withObject:afterDelay: e.g.: static int labelLoopCounter = 10; -(IBAction)buttonP

Re: Cocoa equivalent for 'InstallApplicationEventHandler'

2010-02-21 Thread Jens Alfke
On Feb 21, 2010, at 3:05 AM, Vikram Sethi wrote: > Yes, I would agree that it is not generally a good practice. However, there > are certain things that I would like the app to do in a no-window state for > which tapping into the app would make sense. Keep in mind that many users don't really un

Re: Removing item from CollectionView by drag it out.

2010-02-21 Thread Joachim Deelen
Hi Sandro, it seems, that NSCollectionViews are not used very frequently, among the Members of this list. I've asked several questions regarding NSCollectionsViews here, but almost never got a reply. I've never done drag&drop from or to a NSCollectionView, so I can't help you either. I've done

call ruby scripts from objective c

2010-02-21 Thread Rainer Standke
Hello, I have a Cocoa app that tries to take advantage of existing ruby code. I basically want to use several scripts from a RubyCocoa application in my app. Is there a way to do that? Thanks, Rainer ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: Document not Saving Text View Attachment

2010-02-21 Thread Gordon Apple
This is getting stranger by the minute. I ruled out the menu issue as the cause, then created a test app from the standard doc template. Window contain a scrolling text view and a button. The app edits and archives correctly (compiled using GC). "init" sets an initial string in ts. The text vi

Re: Extract keys, values from 'usrf' Record Type NSAppleEventDescriptor?

2010-02-21 Thread has
Jerry Krinock wrote: > I create an NSAppleScript to read the current window name and URL from Safari > and return it as a record [1]. When I execute it, I get a nice-looking > NSAppleEventDescriptor with the following -description (line breaks added for > readability): > >'usrf': >

Rotating an NSImage around it's own center as well as offset to origin

2010-02-21 Thread Alexander Hartner
I would like to rotate and offset an NSImage and then draw it onto an NSImageView. So far I figured out to use Quartz and use CGContextRotateCTM and CGContextTranslateCTM. I got the offset working just fine using this, but as soon as I introduce the rotation it rotates the image relative to the

Re: Rotating an NSImage around it's own center as well as offset to origin

2010-02-21 Thread Ron Fleckner
On 22/02/2010, at 10:43 AM, Alexander Hartner wrote: I would like to rotate and offset an NSImage and then draw it onto an NSImageView. So far I figured out to use Quartz and use CGContextRotateCTM and CGContextTranslateCTM. I got the offset working just fine using this, but as soon as I i

Re: Document not Saving Text View Attachment

2010-02-21 Thread Kyle Sluder
On Sun, Feb 21, 2010 at 2:00 PM, Gordon Apple wrote: > This is getting stranger by the minute.  I ruled out the menu issue as the > cause, then created a test app from the standard doc template.  Window > contain a scrolling text view and a button.  The app edits and archives > correctly (compiled

NSPredicateEditor losing nextKeyView

2010-02-21 Thread Trygve Inda
In my sheet, I have a "name" NSTextField and an NSPredicateEditor. Initially, the tab key works to jump between my name field and the first match field in the predicate editor. However, after changing any of the menus in the line of my predicate editor, the tab key no longer allows the keyfield to

Re: Document not Saving Text View Attachment

2010-02-21 Thread Gordon Apple
Well, I was going to argue with you, but your post triggered further investigation. I realized that in the past, I had constructed my own. Somehow, in this case, I got it in my head that the bindings would make the text view use my NSTextStorage. Duh. So I changed to the following in the test ap

Re: NSPredicateEditor losing nextKeyView

2010-02-21 Thread Ashley Clark
On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote: > In my sheet, I have a "name" NSTextField and an NSPredicateEditor. > Initially, the tab key works to jump between my name field and the first > match field in the predicate editor. > > However, after changing any of the menus in the line of my pre

Re: Extract keys, values from 'usrf' Record Type NSAppleEventDescriptor?

2010-02-21 Thread Jerry Krinock
Thanks, John and HAS. It turned out that after all was said and done, things were more complicted. I needed to be able to plug in a half dozen scripts, most of them a couple dozen lines, using some "System Events" GUI scripting. So I decided to ship them in Contents/Resources so they could be

Determine if only single instance is running.

2010-02-21 Thread Poonam Virupaxi Shigihalli
Hi list, Is there a way to check an application instance is running. I tried enabling application prohibits multiple instance in info.plist. Still i am able to launch multiple instance of the same application. Thanks, Poonam ___ Cocoa-dev mailing li

Removing quit button from dock menu

2010-02-21 Thread yogin bhargava
Hi everyone, I have an application for which I have to remove quitting option. Anybody has idea how to remove it from the dock menu. Thanks, -- YOGIN BHARGAVA, Flat No TF-2, Phase 4, Lotus Krest, Kundalahalli Colony, ITPL Main Road, Bangalore-560067 _