Re: making a clickable link in NSTableView

2011-06-19 Thread Houdah - ML Pierre Bernard
Hi! Here is the solution I got from DTS: http://dl.dropbox.com/u/2381634/DTS/TableViewLinks-updated.zip At a later WWDC they introduced a more evolved version of the same code: http://developer.apple.com/library/mac/#samplecode/CocoaTipsAndTricks/Introduction/Intro.html Best, Pierre Bernard Ho

Re: Temporarily enabling layer backing for NSView

2011-06-18 Thread Houdah - ML Pierre Bernard
Try calling -display after -setWantsLayer: The view needs to be drawn once into the layer before being able to animate. Another way of achieving the desired result is to draw the initial and target view into images and then animate the swapping of image views. Best, Pierre Bernard Houdah Softwa

Accessibility for NSTableView

2010-04-23 Thread Houdah - ML Pierre Bernard
Hi! I have a table view which lists files. I would like to make the represented objects available through Accessibility. I.e. I want to add NSAccessibilityURLAttribute and NSAccessibilityFilenameAttribute to the table rows. So far, I have come up with this: - (id)accessibilityHitTest:(NSPoin

Re: NSRuleEditor: Criteria for new row

2009-12-23 Thread Houdah - ML Pierre Bernard
objectAtIndex:0] andDisplayValues:[template objectAtIndex:1] forRowAtIndex:rowIndex]; } } Pierre On Dec 23, 2009, at 12:37 AM, Peter Ammon wrote: > > On Dec 22, 2009, at 10:57 AM, Houdah - ML Pierre Bernard wrote: > >> When I hit the "+" button on a row in NSRuleEdi

NSRuleEditor: Criteria for new row

2009-12-22 Thread Houdah - ML Pierre Bernard
When I hit the "+" button on a row in NSRuleEditor, a new row is created. How can I take influence on the criteria used for that row. It seems NSRuleEditor defaults to selecting the first criterion sequentially from the list of possible values. I would much rather have the new row match the row

Re: User interface validation doesn't work, right?

2009-08-23 Thread Houdah - ML Pierre Bernard
Just ran into the same problem and came up with HHValidatedButton: http://www.bernard-web.com/pierre/blog/index.php?id=6542976061063123843 Pierre Bernard On Jul 1, 2009, at 11:24 PM, Bill Cheeseman wrote: For years, the "Implementing Validation" section of Apple's "User Interface Validation"

Re: NSDateFormatter formats from NSLocale

2009-08-11 Thread Houdah - ML Pierre Bernard
h])]; [dateFormat replaceOccurrencesOfString:@"sss" withString:@"ss" options:0 range:NSMakeRange(0, [dateFormat length])]; [dateFormat replaceOccurrencesOfString:@"sss" withString:@"ss" options:0 range:NSMakeRange(0, [dateFormat length])]; [dateFo

Re: NSDateFormatter formats from NSLocale

2009-08-11 Thread Houdah - ML Pierre Bernard
Hi Sean, I want to respect the user's locale, yet ignore his/her preferences as to formatting. I thought about modifying the format I get from the standard styles. I would however expect NSLocale to know the correct order of elements in the date format. Pierre So you want to use the us

NSDateFormatter formats from NSLocale

2009-08-11 Thread Houdah - ML Pierre Bernard
Hi! I am trying to format dates for display. So far I have been using this formatter: NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease]; [dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4]; [dateFormatter setDateStyle:NSDat

NSUndoManager vs @synthesize

2009-08-03 Thread Houdah - ML Pierre Bernard
Hi! Do I still need to write my own accessors in order to perform NSUndoManager registration? Could my model objects observe themselves and register undoable changes in observeValueForKeyPath:ofObject:change:context: ? How does CoreData go about registering changes with the undo manager?

★★★★ Cocoa project for sale

2009-07-13 Thread Houdah - ML Pierre Bernard
HoudahStudy 2.0 (aka Ebbinghaus). Study card software. Late alpha / early beta. CoreData, CoreAnimation, GC, properties, … Ebbinghaus 1.0 was freeware 2.0 is a complete rewrite. Not yet released. Inquire via email to pierre.bern...@houdah.com Current build available upon request

UINavigationController for desktop Cocoa?

2009-06-11 Thread Houdah - ML Pierre Bernard
Hi! Has anyone already re-implemented UINavigationController for desktop Cocoa. That should be a cool thing to have. Pierre - - - Houdah Software s. à r. l. http://www.houdah.com HoudahGeo: One-stop photo geocoding HoudahSpot: Powerful Spotlight frontend _

CoreImage: bend frame with shadow

2009-03-08 Thread Houdah - ML Pierre Bernard
Hi! I remember someone posting code to their blog / web site showing how to frame a slightly bend image and add a shadow to it: Much like a sticker peeling off. I can't find the link anymore. Best, Pierre Bernard - - - Houdah Software s. à r. l. http://www.houdah.com HoudahGeo: One-stop

Re: NSNetService & NSURLConnection on Tiger

2009-02-17 Thread Houdah - ML Pierre Bernard
Hi! This is what I came up with: @implementation NSNetService (ipv4) - (NSArray*)ipv4addresses { NSMutableArray * ipv4addresses = [NSMutableArray array]; NSArray *addresses = [self addresses]; int aCount = [addresses count]; char addr[256]; for (

CoreData mystery: configuration used to open the store is incompatible...

2008-12-15 Thread Houdah - ML Pierre Bernard
Hi! I am puzzled! I have run into this weirdest problem. It only happens if I target Tiger. I am working on an update to HoudahGeo and suddenly, my current build refuses to open documents. This includes both existing documents and documents created by the running application. The error is

Drag & Drop: PREVENT file move

2008-12-11 Thread Houdah - ML Pierre Bernard
Hi! My application shows a list of files in a table view. I have implemented drag and drop so that users may drag files from the list. I could envision them dragging the files onto other applications for viewing or dragging them on a removable media to create archive copies. The problem

Re: Window title bar accessory view

2008-11-19 Thread Houdah - ML Pierre Bernard
Hi Kyle! Thanks a lot. This sounds like a great idea. I will give it a try ASAP. Pierre On 19 Nov 2008, at 04:03, Kyle Sluder wrote: On Tue, Nov 18, 2008 at 9:26 PM, Houdah - ML Pierre Bernard <[EMAIL PROTECTED]> wrote: I would like to replicate the accessory views found in the top

Re: Window title bar accessory view

2008-11-19 Thread Houdah - ML Pierre Bernard
nbach wrote: On Nov 18, 2008, at 6:26 PM, Houdah - ML Pierre Bernard wrote: Hi! I would like to replicate the accessory views found in the top right of window title bars. Examples include Coda, iCal, Safari,... How can I add subviews to the window's title bar? Pierre Greetings, Pierre

Window title bar accessory view

2008-11-18 Thread Houdah - ML Pierre Bernard
Hi! I would like to replicate the accessory views found in the top right of window title bars. Examples include Coda, iCal, Safari,... How can I add subviews to the window's title bar? Pierre ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

NSRuleEditor/NSPredicateEditor selected rows

2008-10-31 Thread Houdah - ML Pierre Bernard
Hi! NSRuleEditor has the concept of selected rows in its API. I however see no visual clues of which rows are selected. Is it possible to subclass whatever cell view is used by the rule editor to add such a visual clue? Pierre ___ Cocoa-dev ma

Re: NSInMemoryStoreType: Not really "persistent", is it?

2008-10-22 Thread Houdah - ML Pierre Bernard
(I did a little demo app at one point long ago that used an in memory store to cache results from Amazon's web services API. The front end was all pure Cocoa / bindings / CD with a minimal amount of additional code to pull data from amazon and push it into the local store). Is that demo

Re: CATiledLayer documentation

2008-08-18 Thread Houdah - ML Pierre Bernard
ng image tiles. http://www.pragprog.com/titles/bdcora http://bill.dudney.net/roller/objc Good luck, -bd- On Aug 18, 2008, at 10:37 AM, Houdah - ML Pierre Bernard wrote: Hi! I would like to create a map view using several tile images: the map is made of tiles; tiles are available for va

CATiledLayer documentation

2008-08-18 Thread Houdah - ML Pierre Bernard
Hi! I would like to create a map view using several tile images: the map is made of tiles; tiles are available for various zoom levels. Seems like CATiledLayer seems the right thing to use. Problem is that I can't seem to find any documentation beyond a rehash of the header file. Is the