Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Peter Duniho
Date: Tue, 20 May 2008 04:26:08 +0200 From: Andreas Mayer <[EMAIL PROTECTED]> Am 19.05.2008 um 22:36 Uhr schrieb Peter Duniho: But not the sort of compelling "we really need the language to be this way otherwise it just doesn't work" example I was hoping for. There is no such example. As was

Re: Initialize a subclass object with a base class object

2008-05-20 Thread stephen joseph butler
On Tue, May 20, 2008 at 1:50 AM, Liviu Andron <[EMAIL PROTECTED]> wrote: > setRepresentedObject: is a hint, thanks, but it doesn't resolve the problem > either: he MUST copy every property from the original NSButtonCell (font, > attributedTitle, imageDimsWhenDisabled, etc). This is how you will ha

Re: Initialize a subclass object with a base class object

2008-05-20 Thread Andreas Mayer
Am 20.05.2008 um 08:50 Uhr schrieb Liviu Andron: either: he MUST copy every property from the original NSButtonCell (font, attributedTitle, imageDimsWhenDisabled, etc) That's exactly what you will have to do. There are cases where this approach is necessary. But you will want to avoid it

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Peter Duniho
Date: Mon, 19 May 2008 19:18:30 -0400 From: Andy Lee <[EMAIL PROTECTED]> [...] When you are accessing only the public API for a class, C#'s extension methods provide the same sort of syntax, but via static methods that the compiler handles so as to make them look like they are part of the origin

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread GĂ©rard Iglesias
>I admit, there are lots of people who don't mind dangerous >programming environments. Some people even thrive on them. But me? >I've had enough of the danger. I've lived my life on the edge long >enough, and I'm ready for a nice, quiet language when it's available. Stay with the M$ way

Categories (was Re: Cocoa et al as HCI usability problem)

2008-05-20 Thread Bill Bumgarner
On May 20, 2008, at 1:07 AM, Peter Duniho wrote: But personally, it makes me nervous to have a language that allows the implementation of a class to change according to other code not related to the class. It's one thing if you're just adding a method that you want to use somewhere else. B

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Andreas Mayer
Am 20.05.2008 um 09:47 Uhr schrieb Peter Duniho: It's "Turing". As in "Alan Turing". Thank you very much for pointing out that typo. -.- Just because two languages are Turing-Complete, that doesn't mean that they will have equivalent implementations. I didn't say that. You talked about

Re: Initialize a subclass object with a base class object

2008-05-20 Thread Nathan Kinsinger
On May 20, 2008, at 1:57 AM, stephen joseph butler wrote: My high-level goal: "he wants an Objective-C equivalent to a C++ copy constructor" You need to go a little higher. WHY do you need a C++ copy constructor? You talk about someone modifying your nib in IB. Why is someone doing this w/o

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Peter Duniho
Date: Tue, 20 May 2008 01:34:32 -0700 From: G?rard Iglesias <[EMAIL PROTECTED]> [...] It is a question of intellectual curiosity I believe, maybe you are too old and tired to take new risk and have more fun ? Yup, that must be it. I'm too old to "get" Objective-C. After all, it's technolo

Re: Localization and plural rules revisited

2008-05-20 Thread Horst Hoesel
Am 20.05.2008 um 05:02 schrieb Ricky Sharp: There was a very short thread on NSLocalizedString regarding plural rules: [snip] In Russian (which has three plural rules), they kind of "cheated" by still only having two strings: 1 song songs: %d Well, I guess they had no other choice, if

Re: Programmatically get treecontroller selection

2008-05-20 Thread Steven Hamilton
On 20/05/2008, at 5:18 AM, Jonathan Dann wrote: On 19 May 2008, at 13:29, Steven Hamilton wrote: I have a core data master-detail interface that consists of a sourcelist on the left and a tableview. The source list displays object from a core data entity. THe table view will be populate

Re: Initialize a subclass object with a base class object

2008-05-20 Thread Liviu Andron
On Tue, May 20, 2008 at 10:57 AM, stephen joseph butler < [EMAIL PROTECTED]> wrote: > On Tue, May 20, 2008 at 1:50 AM, Liviu Andron > <[EMAIL PROTECTED]> wrote: > > setRepresentedObject: is a hint, thanks, but it doesn't resolve the > problem > > either: he MUST copy every property from the origin

Re: Initialize a subclass object with a base class object

2008-05-20 Thread Liviu Andron
On Tue, May 20, 2008 at 11:38 AM, Nathan Kinsinger <[EMAIL PROTECTED]> wrote: > > On May 20, 2008, at 1:57 AM, stephen joseph butler wrote: > > >>> My high-level goal: >>> "he wants an Objective-C equivalent to a C++ copy constructor" >>> >> >> You need to go a little higher. WHY do you need a C+

NSTableView and NSImageView issues

2008-05-20 Thread Damien Cooke
I am a newbe to Cocoa so please be gentle, I have a NSTableView that displays a list of books when clicked I capture the index and determine which book has been selected, I have the cover images in a database. To the right of the NSTableView I have an NSImageView, how do I tell the NSImage

Re: Bindings: Allows Editing Multiple Values Selection

2008-05-20 Thread Gerriet M. Denkmann
On 20 May 2008, at 03:23, Scott Ellsworth wrote: Ok, use todays tools: Xcode -> Help -> Documentation. Type "Allows Editing Multiple Values Selection" got nothing in either Api or Full Text Search. Well. Google on : site:developer.apple.com/documentation/Cocoa Allows Editing Multiple Valu

Re: Bindings: Allows Editing Multiple Values Selection

2008-05-20 Thread Gerriet M. Denkmann
On 20 May 2008, at 01:50, Ken Thomases wrote: This is an example where the reference documentation doesn't guide you to the relevant conceptual documentation very well. Spotlight shows me also "/Developer/ADC Reference Library/ releasenotes/Cocoa/AppKit.html", which mentions this flag wit

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread I. Savant
It is a question of intellectual curiosity I believe, maybe you are too old and tired to take new risk and have more fun ? Yup, that must be it. I'm too old to "get" Objective-C. After all, it's technology that's only 20 years old. It's really for those young whipper-snappers, who are in

NSApp with wrong _running count

2008-05-20 Thread Micha Fuhrmann
Hi everyone, some users are reporting a crash at start. From the logs it seems that the sys is recognizing multiple running of the app, but from there I have no clue as to how to remedy. Any help greatly appreciated. Michael Process: TheApp [354] Path:/Applications/Th

Re: Localization and plural rules revisited

2008-05-20 Thread RICKY SHARP
On Tuesday, May 20, 2008, at 04:54AM, "Horst Hoesel" <[EMAIL PROTECTED]> wrote: > >Am 20.05.2008 um 05:02 schrieb Ricky Sharp: > >> There was a very short thread on NSLocalizedString regarding plural >> rules: >> >> [snip] > >> In Russian (which has three plural rules), they kind of "cheated"

Re: NSApp with wrong _running count

2008-05-20 Thread Andrew Farmer
On 20 May 08, at 04:07, Micha Fuhrmann wrote: some users are reporting a crash at start. From the logs it seems that the sys is recognizing multiple running of the app, but from there I have no clue as to how to remedy. <...> Thread 3: 8 com.apple.AppKit0x93eeb2fd NSRun

Re: Custom NSPredicateEditorRowTemplate with Single Item

2008-05-20 Thread Steven Huey
Peter, On May 19, 2008, at 6:58 PM, Peter Ammon wrote: You're probably receiving this (admittedly opaque) error because you're not implementing the NSCopying protocol. Since a predicate editor can have multiple, identical rows, your templates are copied before their views are added to the

NSTableView and NSImageView issues

2008-05-20 Thread Peter Hudson
[1] use the image file to init an NSImage :- e.g. NSImage *image = [[NSImage alloc] initWithContentsOfFile:@"bookCover.tiff"]; // takes a range of graphic file types [2] use this image in the message - (void)setImage:(NSImage *) image to your image view (PH) __

Pantomime in xcode3.0

2008-05-20 Thread vinitha
I'm using pantomime for sending mail without using mail client.I could use this framework to send attachments by using the following code. [message setContentType:@"multipart/mixed"]; [message setContentTransferEncoding: PantomimeEncodingBase64]; [message setCharset: @"us-ascii"]; [messa

Re: NSApp with wrong _running count

2008-05-20 Thread Micha Fuhrmann
Andrew, many thanks, now, what else can I use that's thread safe for that matter? Michael On 20 mai 08, at 13:30, Andrew Farmer wrote: On 20 May 08, at 04:07, Micha Fuhrmann wrote: some users are reporting a crash at start. From the logs it seems that the sys is recognizing multiple runni

Re: Pantomime in xcode3.0

2008-05-20 Thread Torsten Curdt
Cross posting is really not appropriate (...and I am wondering what this has to do with XCode 3.0) Please check out the source code from GNUMail as an example on how to send multipart messages with Pantomime. See EditWindowController.m cheers -- Torsten On May 20, 2008, at 13:38, [EMAIL

Accessing [event modifierFlags] in an action method?

2008-05-20 Thread Matt Gough
I have an action method for a disclosure button : -(IBAction) toggleText:(id) sender { [self doSomethingUseful]; } I now want it to behave slightly differently if the command key was down when the button was clicked, but can see no 'simple' way to get the state of the modifier keys

Re: Accessing [event modifierFlags] in an action method?

2008-05-20 Thread Graham Cox
[[NSApp currentEvent] modifierFlags]; hth, G. On 20 May 2008, at 10:16 pm, Matt Gough wrote: I have an action method for a disclosure button : -(IBAction) toggleText:(id) sender { [self doSomethingUseful]; } I now want it to behave slightly differently if the command key was down

Re: Localization and plural rules revisited

2008-05-20 Thread Horst Hoesel
Hey Ricky, [snip] "0 songs" = "No songs"; "1 song" = "1 song"; "2 songs" = "2 songs"; "3 songs" = "3 songs"; "%d songs" = "%d songs"; // 4 or more This technical works only for certain languages. Plural rules for Polish, Russian and Arabic get really complex. For example, I've seen th

RE: NSApp with wrong _running count

2008-05-20 Thread Rajendran_Pichaimurthy
Hi never call nsrunalert from a thread which is not main thread,use performselectoronmain and call a function which uses nsrunalertpanel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] com] On Behalf Of Micha Fuhrmann Sent: Tuesday, May 20, 2008 5:22 PM To: Andrew

Re: Initialize a subclass object with a base class object

2008-05-20 Thread Erik Buck
1) NSCell is often used along with the Prototype design pattern. See the -setPrototype: method of NSMatrix. When so configured, NSMatrix copies its prototype cell as needed to create new instances. 2) Of course NSCell implements . Otherwise it couldn't be used in Interface Builder becau

Re: Initialize a subclass object with a base class object

2008-05-20 Thread Andy Lee
On May 20, 2008, at 6:17 AM, Liviu Andron wrote: On Tue, May 20, 2008 at 10:57 AM, stephen joseph butler < [EMAIL PROTECTED]> wrote: On Tue, May 20, 2008 at 1:50 AM, Liviu Andron <[EMAIL PROTECTED]> wrote: setRepresentedObject: is a hint, thanks, but it doesn't resolve the problem either: he

Re: Accessing [event modifierFlags] in an action method?

2008-05-20 Thread Matt Gough
Thanks, I knew there would be a simple way. Matt On 20 May 2008, at 14:21, Graham Cox wrote: [[NSApp currentEvent] modifierFlags]; hth, G. On 20 May 2008, at 10:16 pm, Matt Gough wrote: I have an action method for a disclosure button : -(IBAction) toggleText:(id) sender { [self

Re: Initialize a subclass object with a base class object

2008-05-20 Thread Andy Lee
On May 20, 2008, at 8:55 AM, Andy Lee wrote: You could add a category to NSObject like this: - (void)copyProperties:(id)otherObject (nitpicking myself) -copyPropertiesFrom: would be a better name. And I would add an ugly prefix to avoid collision in case Apple adds a method of the same

check if app opens with a document on startup

2008-05-20 Thread Torsten Curdt
I have a document based application. The AppController prevents empty documents to be created at startup with - (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender { return NO; } All good. But I was wondering if it is possible to find out if the application has been opened b

Re: bindings tutorial doesn't work

2008-05-20 Thread Michael Babin
On May 19, 2008, at 11:41 PM, Daniel Child wrote: After reading a host of theoretical explanations on bindings, I tried the bindings-based currency converter tutorial to try to get some basic feel for bindings in practice. The example is written for an earlier version of OSX, but I think I

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Matt Long
I recently wrote a blog post with a demo xcode project that shows an implementation of updating a progress indicator for file copy. You can see it here: http://www.cimgf.com/2008/05/03/cocoa-tutorial-file-copy-with-progress-indicator/ It's a lowest common denominator example, so it might give

RE: Delegates

2008-05-20 Thread john darnell
Sigh. So I'm dating myself with the comment about dating myself... (playful grin) R, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff LaMarche Sent: Monday, May 19, 2008 4:04 PM To: Cocoa Developers Subject: Re: Delegates On May 19, 2008, at 5

Re: check if app opens with a document on startup

2008-05-20 Thread Jens Alfke
On 20 May '08, at 6:31 AM, Torsten Curdt wrote: All good. But I was wondering if it is possible to find out if the application has been opened by dragging a document onto it. Your delegate will get one of these calls: - (BOOL)application:(NSApplication *)sender openFile:(NSString *)filena

Conceptual MVC Help

2008-05-20 Thread Johnny Lundy
Greetings I got my NSPopUpButton working, but have been informed that it is done wrong. The last time I submitted this it had a typo and I was chastised and told to read the Objective-C introduction, so the question wasn't addressed. I'd like to submit this bare-bones example for comment.

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Jens Alfke
That's a very strange problem. Ordinarily, even if the main thread were hung, the progress bar would still show its animation (that's done on the "UI heartbeat thread".) And the way it updates when you click implies something's messed up with window-redraw behavior. My first guess is that y

Re: Localization and plural rules revisited

2008-05-20 Thread Stephen F. Booth
I would recommend using ICU (http://icu-project.org) for more advanced localization options. In particular have a look at the MessageFormat and ChoiceFormat classes. For example, here is an ICU code snippet for formatting a string representing the number of files on a disk: UErrorCode su

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread j o a r
On May 19, 2008, at 11:53 PM, Vitaly Ovchinnikov wrote: I tried to move progress update from timer to selector that was called by performSelectorFromMainThread - doesn't help too. Does this comment mean that you're currently calling -setDoubleValue: from a background thread? That's, AFAIK,

Re: bindings tutorial doesn't work

2008-05-20 Thread Daniel Child
THANK YOU! On May 20, 2008, at 9:33 AM, Michael Babin wrote: On May 19, 2008, at 11:41 PM, Daniel Child wrote: After reading a host of theoretical explanations on bindings, I tried the bindings-based currency converter tutorial to try to get some basic feel for bindings in practice. The ex

Re: NSApp with wrong _running count

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 5:51 AM, Micha Fuhrmann wrote: many thanks, now, what else can I use that's thread safe for that matter? Nick Zitzmann

NSView Text Paint inversed

2008-05-20 Thread Jere Gmail
Hi. I have an NSView where I paint some text and paths. The paths are drawn ok, but when I resize the window, sometimes the text is written upside down. Anyone knows why? Thanks. -- http://zon7blog.wordpress.com/ And again we fall. ___ Cocoa-dev mailing

Cocoa Developers

2008-05-20 Thread wayne . daley
I was wondering if there was a Cocoa Developers group in the upstate NY area? Thank you, Wayne "Dave DeLong" <[EMAIL PROTECTED]

NSViewController and Nib files

2008-05-20 Thread Cathy Shive
Hi, I'm hoping that one of the Cocoa engineers out there can answer a question about NSViewController for me. In the documentation, it states that the view controller will handle memory management for the objects in its nib file. Does this only apply to nib files that are loaded by NSVie

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Mark Roseman
I wanted to throw in another set of experiences and opinions, as someone who has recently been (re)learning Cocoa for a new application. Background... programming since mid-80's, MSc in HCI/CSCW, worked on a number of significant Mac programs off and on since the "phone book" edition of Ins

[MODERATOR] Re: CATransactions not working

2008-05-20 Thread Scott Anguish
Once again. Discussion of the iPhone SDK is NOT allowed here. It is under NDA. Thanks Scott moderator On May 19, 2008, at 2:03 PM, Adam Radestock wrote: This is actually on iPhone... Core Animation is always active on iPhone, there's no wantsLayer function...

NSTableView and CoreAnimation

2008-05-20 Thread Yann Bizeul
Hello list, I'm trying to implement a preference interface like System Preferences, and using Core Animation. When I look at Basic Cocoa Animation sample code, it looks nice and seem to be the starting point for what I want to do. The problems is with NSTableViews. When the window resizes a

Rendering issues with Core Animation and setWantsLayer:

2008-05-20 Thread Ben Einstein
Hi, This is my first time taping into CA and I've been having some issues with rendering. There we're some minor issues with a few custom views and drawing, but I've figured out ways to get around them; things that are fine when setWantsLayer is NO but show up when YES. I've now caught th

Re: Localization and plural rules revisited

2008-05-20 Thread Peter Edberg
CLDR (Common Locale Data Repository) has some draft data on plural forms for various languages. See for specific rules and for background info

Re: Programmatically get treecontroller selection

2008-05-20 Thread Quincey Morris
On May 20, 2008, at 03:10, Steven Hamilton wrote: I have an NSOutlineVIew bound to a NSTreeController in entity mode bound to an entity called "Account" which has a NSString called "name" So the NSTreeController is set to entity mode and the entity name is "Account", yes? I re-phrased it l

[NSMutableParagraphStyle setTighteningFactorForTruncation:] clarification

2008-05-20 Thread matt . gough
According to the documentation: * This method accepts positive and negative values, excluding 0. The default value is 0.05. * It seems that 0 is exactly the value I want to use to ensure there is no tightening. Is the documentation wrong? Matt _

Re: Conceptual MVC Help

2008-05-20 Thread Erik Buck
Given your class: // Popup.h // TestPopup #import @interface Popup : NSObject { NSArray *popupArray; NSString *selectedGame; } @property (readwrite, copy) NSArray *popupArray; @property (readwrite, copy) NSString *selectedGame; @end To start with, in my opinion you have a brok

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Erik Buck
I agree completely with Mark Roseman's analysis: 1) Too many chioces 2) Too many concepts 3) Too much housekeeping 4) Doesn't support everything 5) Too much hype. The only additions I can make are the following: 1) Many folks from the Windows worls are certainly familiar with

Re: Programmatically get treecontroller selection

2008-05-20 Thread Jonathan Dann
2008-05-19 22:25:46.990 moolahcoredata[664:10b] Cannot perform operation without a managed object context I just tried to replicate this and got this error when the tree controller wasn't bound to the moc and 'prepares content' is selected. This, of course, would fail as the controller i

Re: Programmatically get treecontroller selection

2008-05-20 Thread Jonathan Dann
In addition: So, I guess my question is: how is your NSOutlineView populated? Do you have to NSTableColumn of the NSOutlineView bound to the tree controllers @"arrangedObjects.name" keypath? If this is the case, in what way are you giving the tree controller content to work with. All the

Re: NSApp with wrong _running count

2008-05-20 Thread Michael Vannorsdel
When you mention running count, are you keeping an int or something to keep track of thread progress? If so remember to use atomic operations to update the count from multiple threads to prevent data corruption. As for NSAlert, a general rule is not to interact with the UI from any thread

Re: NSViewController and Nib files

2008-05-20 Thread Shawn Erickson
On Tue, May 20, 2008 at 8:45 AM, Cathy Shive <[EMAIL PROTECTED]> wrote: > Hi, > > I'm hoping that one of the Cocoa engineers out there can answer a question > about NSViewController for me. > > In the documentation, it states that the view controller will handle memory > management for the objects

Re: NSView Text Paint inversed

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 9:40 AM, Jere Gmail wrote: Hi. I have an NSView where I paint some text and paths. The paths are drawn ok, but when I resize the window, sometimes the text is written upside down. Anyone knows why? How are you drawing the text? Nick Zitzmann

Re: Conceptual MVC Help

2008-05-20 Thread Michael Babin
On May 20, 2008, at 9:41 AM, Johnny Lundy wrote: QUESTION: How would you implement the binding to the model objects "popUpArray" and "selectedGame" so that the popup loads from "popUpArray" and its selection is kept in sync with the property "selectedGame?" Specifically, is there a way to

ImageCapture API versions

2008-05-20 Thread Rick Mann
Hi. I'm interested in writing an app that snaps pictures from a digicam. I'm looking at the ImageCapture APIs that are part of the Carbon framework, but the docs talk about an SDK available that includes both Carbon and Cocoa examples. When I go to get that SDK, the latest one appears to be

Re: Forcing a refresh on a bound control

2008-05-20 Thread Hamish Allan
On Tue, May 20, 2008 at 12:43 AM, Christiaan Hofman <[EMAIL PROTECTED]> wrote: > The problem is that at some point the dependent key depends on a key for > /another/;object. And this can not give automatic KVO notifications for the > dependent key (using Tiger API), unless you actually use a KVC c

Re: Forcing a refresh on a bound control

2008-05-20 Thread Hamish Allan
On Tue, May 20, 2008 at 8:12 PM, Hamish Allan <[EMAIL PROTECTED]> CCed the wrong list -- I meant to CC MacOSX-dev. Sorry! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

SOLVED: Front and back flip animation

2008-05-20 Thread Geert B. Clemmensen
Hello, I finally got this to work the way I wanted to. The main trick is that for a layer associated with a view (setWantsLayer:YES) the anchorPoint is (0, 0). Apple's CALayer documentation states that the anchorPoint (0.5, 0.5), but alas, this isn't the truth in all cases. The final piec

Re: ImageCapture API versions

2008-05-20 Thread Matt Long
It's included for 10.5. I don't think you want Image Capture for your app, though as this API is mainly for downloading images from the camera after a photo shoot. I don't believe there is any mechanism for causing the picture to be taken (from a button click in your app for example). QTKit

Re: ImageCapture API versions

2008-05-20 Thread Randall Meadows
On May 20, 2008, at 1:26 PM, Matt Long wrote: It's included for 10.5. I don't think you want Image Capture for your app, though as this API is mainly for downloading images from the camera after a photo shoot. I don't believe there is any mechanism for causing the picture to be taken (from

Re: Localization and plural rules revisited

2008-05-20 Thread Ricky Sharp
On May 20, 2008, at 12:08 PM, Peter Edberg wrote: CLDR (Common Locale Data Repository) has some draft data on plural forms for various languages. See for specific rules and

Re: Localization and plural rules revisited

2008-05-20 Thread Peter Edberg
On May 20, 2008, at 12:48 PM, Ricky Sharp wrote: On May 20, 2008, at 12:08 PM, Peter Edberg wrote: CLDR (Common Locale Data Repository) has some draft data on plural forms for various languages. See for specific

Re: Localization and plural rules revisited

2008-05-20 Thread Gary L. Wade
>On May 20, 2008, at 12:08 PM, Peter Edberg wrote: > >> CLDR (Common Locale Data Repository) has some draft data on plural >> forms for various languages. See >> >> > for specific rules >> and >>

Re: NSTableView and NSImageView issues

2008-05-20 Thread Clint Shryock
If you can find the image in your "database" you can tell your image view to draw that image, using NSImageView's "setImage:" method.you'll need an outlet to the image view where-ever you're capturing the index and matching it to your database +cts On Tue, May 20, 2008 at 5:53 AM, Damien Cooke <[E

Re: ImageCapture API versions

2008-05-20 Thread douglas a. welton
Rick, Have you seen the IKPictureTaker class? I haven't used it, but here's what the documentation says... The IKPictureTaker class represents a panel that allows users to choose images by browsing the file system. The picture taker panel provides an Open Recent menu, supports image crop

Fwd: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> Does this comment mean that you're currently calling -setDoubleValue: from a > background thread? That's, AFAIK, not supported. You need to change this, No, -setDobuleValue called from the main thread. My first idea was that NSTimer creates another thread, but after NSLog(@"thread = %@", [NSThre

Re: ImageCapture API versions

2008-05-20 Thread Rick Mann
On May 20, 2008, at 13:45:12, douglas a. welton wrote: Have you seen the IKPictureTaker class? I haven't used it, but here's what the documentation says... The IKPictureTaker class represents a panel that allows users to choose images by browsing the file system. The picture taker panel

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
http://www.appsforlife.com/progress.zip (36Kb) Idea is simple: - (void) awakeFromNib { [progress setHidden:YES]; timer = [NSTimer init.]; } - (void) onTimer: (id) timer { [progress setDoubleValue:...]; [progress setHidden:NO]; // once or every timer cycle - doesn't matter (in real

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Shawn Erickson
On Mon, May 19, 2008 at 11:53 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> wrote: > Hello > I work on Cocoa application that uses posix thread to perform big > calculations. I need to display the progress. Big caculations are done > with C++ and I have a callback function that called by the calculati

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> If you send your progress view a setUsesThreadedAnimation: message > with a value of YES do it continue to animate? Just tried to send this message in my test project - it doesn't animate. I removed almost all code, including all my C++ code. Finally it takes about 10 lines to hang a progress ;)

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Shawn Erickson
On Tue, May 20, 2008 at 1:54 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> wrote: > Ideas? What version of Mac OS X are you running? What version of Xcode are you using? -Shawn ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> What version of Mac OS X are you running? What version of Xcode are you > using? Mac OS X 10.4.11 (running at G4) XCode 2.0 (IDE - 514, Core - 515, ToolSupport - 514) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Shawn Erickson
On Tue, May 20, 2008 at 1:59 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> wrote: >> If you send your progress view a setUsesThreadedAnimation: message >> with a value of YES do it continue to animate? > > Just tried to send this message in my test project - it doesn't animate. > I removed almost all

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> It is working fine for me using Mac OS X 10.5 and Mac OS X 10.4 when > compiled with Xcode 2.5 against the 10.4u SDK (not tried any other > version of Xcode or SDK). well, it seems that I know what my mac will download tonight ;) thanks for testing, I'll try to download and install 2.5 _

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Shawn Erickson
On Tue, May 20, 2008 at 2:06 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> wrote: >> It is working fine for me using Mac OS X 10.5 and Mac OS X 10.4 when >> compiled with Xcode 2.5 against the 10.4u SDK (not tried any other >> version of Xcode or SDK). > > well, it seems that I know what my mac will d

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> Well on my 8th or so try on a 10.4 system I got it to do something > like what I think you are reporting. If you double-click launch the > application and do NOT move the mouse, click the mouse button, or > press any key on the keyboard the progress UI will not start moving. > As soon as you gene

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> It is working fine for me using Mac OS X 10.5 and Mac OS X 10.4 when > compiled with Xcode 2.5 against the 10.4u SDK (not tried any other > version of Xcode or SDK). just installed XCode 2.5 and tried the demo project - result is the same, progress freezes. I have a slow computer, maybe the reas

Re: Localization and plural rules revisited

2008-05-20 Thread Ricky Sharp
On May 20, 2008, at 3:40 PM, Gary L. Wade wrote: On May 20, 2008, at 12:08 PM, Peter Edberg wrote: CLDR (Common Locale Data Repository) has some draft data on plural forms for various languages. See

Re: Localization and plural rules revisited

2008-05-20 Thread Ricky Sharp
On May 20, 2008, at 3:27 PM, Peter Edberg wrote: On May 20, 2008, at 12:48 PM, Ricky Sharp wrote: On May 20, 2008, at 12:08 PM, Peter Edberg wrote: CLDR (Common Locale Data Repository) has some draft data on plural forms for various languages. See

Cocoa et al as HCI usability problem

2008-05-20 Thread Klaus Backert
Am 20.05.2008 um 19:54 schrieb Erik Buck: I agree completely with Mark Roseman's analysis: I'm not quite with Mark and Erik. 1) Too many chioces The world the software is developed for is complex to such a degree, that we need many choices. But don't torture yourself, and apply Occam'

Re: Localization and plural rules revisited

2008-05-20 Thread Gerriet M. Denkmann
On 20 May 2008, at 23:03, [EMAIL PROTECTED] wrote: On May 20, 2008, at 12:08 PM, Peter Edberg wrote: CLDR (Common Locale Data Repository) has some draft data on plural forms for various languages. See

NSScrollView, NSCollectionView and "zooming" / resizing to the center

2008-05-20 Thread Daniel Vollmer
Hi all, the subject is vague, but I'm at a loss for how to describe my problem. I have an NSCollectionView inside an NSScrollView (as is usual). I display a bunch of items (in 1 column and multiple rows) in the collection view. The (custom views) inside the collection view are set to resi

Re: NSApp with wrong _running count

2008-05-20 Thread Chris Hanson
On May 20, 2008, at 4:51 AM, Micha Fuhrmann wrote: many thanks, now, what else can I use that's thread safe for that matter? Don't structure your code such that you would be putting up an alert from a non-main thread. If you keep to strict MVC, you can design your application such that

Re: Localization and plural rules revisited

2008-05-20 Thread Ricky Sharp
On May 20, 2008, at 5:20 PM, Gerriet M. Denkmann wrote: What is to be done for "Move %d units to the right and %d steps up" ? So far, I don't have any strings that have two or more phrases within them. But I can see the potential issue. I suppose one would just need to do all permutat

Re: NSApp with wrong _running count

2008-05-20 Thread Andrew Farmer
On 20 May 08, at 11:10, Michael Vannorsdel wrote: When you mention running count, are you keeping an int or something to keep track of thread progress? If so remember to use atomic operations to update the count from multiple threads to prevent data corruption. As for NSAlert, a general ru

Re: [NSMutableParagraphStyle setTighteningFactorForTruncation:] clarification

2008-05-20 Thread Aki Inoue
Looks like the sentence is not exactly accurate 8-). Please file a bug. Thank you, Aki On 2008/05/20, at 10:24, [EMAIL PROTECTED] wrote: According to the documentation: * This method accepts positive and negative values, excluding 0. The default value is 0.05. * It seems that 0

Attempting to create NSTableView with Single Header

2008-05-20 Thread Brent Fulgham
I have been trying to create a two-column NSTableView with a single "spanned" column header. The idea here is to allow a static set of labels on the left-hand column, with values on the right-hand side. For example, in ASCII art: | My single column header | |Label 1 | Value 1|

Safari-like padlock button in window title bar

2008-05-20 Thread Jim Matthews
I'd like to draw a padlock icon in a window title bar, similar to the way Safari does when it's displaying an https URL. And I'd like to be able to respond to clicks on the padlock by displaying security information. Is there a supported way to add a button to a window's title bar? Thanks,

Re: NSView Text Paint inversed

2008-05-20 Thread Graham Cox
Post your drawing code. Inverted text isn't too uncommon, as text expects to be drawn into a flipped context. For a view, it should work whether you are flipped or not, but if you are drawing in some unusual way you might be confusing it. G. On 21 May 2008, at 1:40 am, Jere Gmail wrote:

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Graham Cox
On 21 May 2008, at 2:41 am, Mark Roseman wrote: 4. Doesn't support everything. I'm being slightly facetious here, but what I really mean is that there are some things you might think are (should be) easy, that you have to create for yourself. If anyone has used Tk, you know about its can

RE: Safari-like padlock button in window title bar

2008-05-20 Thread Gary L. Wade
I'm planning on doing something like this myself with one of my projects, and the way I plan on trying it out is by using: -(NSButton *)standardWindowButton:(NSWindowButton)b; for each NSWindowButton of the NSWindow, find a reasonable visual gap to the left/right of one of the buttons, and

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Michael Ash
On Tue, May 20, 2008 at 4:07 PM, Peter Duniho <[EMAIL PROTECTED]> wrote: > But personally, it makes me nervous to have a language that allows the > implementation of a class to change according to other code not related to > the class. It's one thing if you're just adding a method that you want to

  1   2   >