Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Jim Turner
Chris, On Tue, Mar 4, 2008 at 9:47 PM, Chris Suter [EMAIL PROTECTED] wrote: 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

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Jim Turner
On Wed, Mar 5, 2008 at 12:00 PM, mmalc crawford [EMAIL PROTECTED] wrote: On Mar 5, 2008, at 9:34 AM, Jim Turner wrote: I filed a bug (rdar://problems/5781977) as this doesn't appear to be proper behavior. I'd be happy to be told I'm wrong if you can point out what I'm missing. I

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Jim Turner
On Wed, Mar 5, 2008 at 4:14 PM, mmalc crawford [EMAIL PROTECTED] wrote: On Mar 5, 2008, at 1:40 PM, Adam P Jenkins wrote: If you define a @property in the interface, then in the implementation you either need use @synthesize to have the compiler automatically generate a getter and

NSSearchField in menu item weirdness

2008-05-13 Thread Jim Turner
I have a custom NSView that contains static text and a NSSearchField, it's your run-of-the-mill attempt to provide live search in a menu, a la the Apple help menu. My issue is that while I can get the cursor into the search field, if I type something other than standard text (arrow keys, home,

Re: NSPredicate for a ANY match based on two properties at once

2008-06-20 Thread Jim Turner
On Fri, Jun 20, 2008 at 10:56 AM, Jesse Grosjean [EMAIL PROTECTED] wrote: I'm having a hard time figuring out how to construct a query. The objects involved are: Entry - has many tags Tag - name (string) - value (string) I want to construct searches such as:

Re: NSPredicate for a ANY match based on two properties at once

2008-06-20 Thread Jim Turner
On Fri, Jun 20, 2008 at 2:06 PM, Jesse Grosjean [EMAIL PROTECTED] wrote: I want to construct searches such as: - find all entries that have a the tag named priority with the value 1. NSPredicate *tagPredicate = [NSPredicate predicateWithFormat:@ANY tags.name = %@, tag.name];

Re: NSPredicateEditorRowTemplate

2008-06-24 Thread Jim Turner
On Tue, Jun 24, 2008 at 2:02 AM, Chris [EMAIL PROTECTED] wrote: When the user clicks ok, then I call objectValue on the NSPredicateEditor and it calls predicateWithSubpredicates not on object C, but on object B, which is always going to be blank, because it is in fact object C which is the one

Re: NSPredicateEditorRowTemplate

2008-06-24 Thread Jim Turner
On Tue, Jun 24, 2008 at 8:46 AM, Chris [EMAIL PROTECTED] wrote: Hi! This is very interesting information. Wish it was in the doco! I have a custom view which wasn't responding to setObjectValue / objectValue. When I add those methods I find that on startup it does indeed copy the values

Re: NSPredicateEditor

2008-06-25 Thread Jim Turner
On Wed, Jun 25, 2008 at 1:08 AM, Chris [EMAIL PROTECTED] wrote: Let's say I create a NSPredicateEditor and it looks like this: [All] of the following are true: [Name] equals [ ] --- So the user enters say Fred and the

NSPredicateEditorRowTemplates and preserving user input

2008-08-29 Thread Jim Turner
Hi List, I noticed something today while building a new popup-popup-popup template: when the user changes the comparator (a simple is/is not in my case), the third popup resets itself to the default value instead of maintaining the selection the user had already chosen. The same is true if the

Re: NSPredicateEditorRowTemplates and preserving user input

2008-08-29 Thread Jim Turner
, Aug 29, 2008 at 4:17 PM, Peter Ammon [EMAIL PROTECTED] wrote: On Aug 29, 2008, at 8:51 AM, Jim Turner wrote: Hi List, I noticed something today while building a new popup-popup-popup template: when the user changes the comparator (a simple is/is not in my case), the third popup resets

Re: Core Data Form

2008-09-05 Thread Jim Turner
Jon, First off, unless you're doing something special you don't need to create custom classes for each entity. If your managed object really is just slinging strings, leave the class as NSManagedObject and create a new entity with: NSManagedObject *hostObj = [NSEntityDescription

Re: How to develop a Safari event listener

2008-09-29 Thread Jim Turner
Hi Bill Unless things have changed recently, what you're looking for is called Not Officially Supported by Safari. As you discovered, there is no interface that will allow a plugin to load arbitrarily unless it's going to provide some sort of media handler for content on the page. That being

IKImageView and delegate callback/notification of image changes

2008-10-06 Thread Jim Turner
Hi list. Attempting to use IKImageView to implement a really basic image editor in my app and I've come across what appears to be a pretty odd omission: IKImageView never tells you when the image has been edited and needs saved. While the object supports a delegate, there's no documentation on

Re: Anyone using IKImageView/any alternatives ?

2009-02-05 Thread Jim Turner
I'm using IKImageView in an app and while it's far from being a fully-featured control, it can do some things ok. If all you need to do is pan and zoom, IKImageView will work just fine. It's when you get into more advanced things like rotation and saving changes where the implementation falls

Re: filteredArrayUsingPredicate and points

2009-04-15 Thread Jim Turner
On Wed, Apr 15, 2009 at 9:05 AM, Alexey Baev b...@belightsoft.com wrote: Hi. I have class MyDot. This class has function: - (BOOL) containsPoint: (NSPoint) pt; I have also NSArray, which contains several MyDot objects: NSArray* dots; I want to get new array NSArray* newDots which

Renaming a file repositions icon in Finder

2009-05-08 Thread Jim Turner
It appears that renaming a file will cause the Finder to reposition the icon for the file if it's currently displayed in a icon view somewhere. Is there any way to prevent that from happening? It looks very strange to have icons jump all over the place just because of a rename. Thinking that it

Application main menu title behavior change in 10.6

2009-09-04 Thread Jim Turner
Hi all, I have an application (QuicKeys) that allows the user to define menu selection as an action. In our latest version and under Leopard, we present UI that replaces the main menu bar of our app with the menu bar of the target app (via setMainMenu:) so that we can correctly retrieve which

Re: Application main menu title behavior change in 10.6

2009-09-08 Thread Jim Turner
On Fri, Sep 4, 2009 at 9:03 PM, Peter Ammonpam...@apple.com wrote: Hi Jim, First let me thank you for checking the release notes.  However, that particular issue is unrelated, confusingly enough. Here's what's going on.  The first menu item in the main menu (or more precisely, its submenu)

Re: NSCollectionView issues

2009-10-16 Thread Jim Turner
10.5's collection view is, safe to say, kind of a train wreck. I've had to work around quite a few things. Your problem is solvable by asking the NSCollectionViewItem created for your new table element for its view and to have that view scrollRectToVisible: for its bounds. If you need to get the

Re: NSPredicateEditorRowTemplate and dynamic popups

2009-11-13 Thread Jim Turner
Try this: Create an outlet to your row template. When you need to update the popups, make a copy of that template. Make a copy of the rowTemplates the predicate editor currently tracks and iterate over them replacing the template in the list that is the same class as your custom template. Then

Re: Renaming a file repositions icon in Finder

2009-05-11 Thread Jim Turner
On Fri, May 8, 2009 at 5:45 PM, Sean McBride s...@rogue-research.com wrote: On 5/8/09 2:52 PM, Jim Turner said: It appears that renaming a file will cause the Finder to reposition the icon for the file if it's currently displayed in a icon view somewhere.  Is there any way to prevent that from

NSFileManager's copyItemAtPath:toPath:error: syslogging every directory it finds?

2009-06-01 Thread Jim Turner
Hopefully this has a simple answer but it seems now that when I call copyItemAtPath:toPath:error: to copy a folder to another location, I get this in the console: 6/1/09 3:48:28 PM /Users/jimt/Source/MyApp/trunk/build/Debug/MyApp.app/Contents/MacOS/MyApp[29625] reading from

Re: NSPredicate like NSLiteralSearch

2009-12-15 Thread Jim Turner
I believe you need the diacritic insensitive option: 'someProperty BEGINSWITH[d] ?' Look up NSComparisonPredicate options in the documentation for more discussion. As for what the 'w' means, it's Spotlight specific. The Comparison is word based, and also detects transitions from lower-case to

Re: A password strength checker

2010-01-11 Thread Jim Turner
Awesome find, Howard. I've needed a password strength algorithm in the past and never could find one. Plus, the strength computed by the Password Assistant is questionable at best. Given a password of '' (20 lowercase 'a'), the assistant scores it about a 20%. Add one more

Re: A password strength checker

2010-01-12 Thread Jim Turner
suspect that it will be done using MonoDevelop (C#.NET for non-Windows platforms) rather than being written in ObjC/Cocoa. - h On Mon, Jan 11, 2010 at 08:12, Jim Turner jturner.li...@gmail.com wrote: Awesome find, Howard. I've needed a password strength algorithm in the past and never could

NSServices error parameter ignored?

2010-01-18 Thread Jim Turner
I've created and am successfully calling a service in my application. But when an error is encountered and I set an error string, it doesn't seem to go anywhere. The docs say its supposed to be logged to the console but I see nothing. Is this a bug or am I missing something? My code: -(void)

Re: NSServices error parameter ignored?

2010-01-18 Thread Jim Turner
On Mon, Jan 18, 2010 at 11:38 AM, Greg Parker gpar...@apple.com wrote: On Jan 18, 2010, at 8:52 AM, Jim Turner wrote: I've created and am successfully calling a service in my application. But when an error is encountered and I set an error string, it doesn't seem to go anywhere. The docs say

Re: NSPredicateEditor Continuous updating failes

2010-01-21 Thread Jim Turner
On Thu, Jan 21, 2010 at 6:00 AM, Florian Soenens florian.soen...@nss.be wrote: Hi LIst, i set up an NSPredicateEditor and got it all working fine except that it only executes when i hit enter or tab out of the NSTextField. Is there a way to let it execute everytime something changes in the

Accessing NSKeyedArchiver's archivedDataWithRootObject by name

2008-12-09 Thread Jim Turner
I have a situation where I'm archiving an array of objects via NSKeyedArchiver's archivedDataWithRootObject: and later needing to set a delegate on the NSKeyedUnarchiver that decodes it. The documentation is a bit unclear on how one starts the unarchive process when a NSKeyedUnarchiver is created

Re: NSPredicateEditorRowTemplate for NSDate

2009-01-19 Thread Jim Turner
The miracle is over. The out-of-the-box templates in IB only provide three-view templates (left expression, operator, right expression). You'll need to subclass NSPredicateEditorRowTemplate and provide the views and logic you want to use in your template. I did a presentation for the local