problems with scripting

2009-06-12 Thread Vitaly Ovchinnikov
Hello, I completely stumped with allowing my application to be called from apple-script. After reading of apple docs, I added simple sdef file and two keys to info.plist. Sdef file contains only standard suite and nothing added by me, but even with this I can't run the simplest script like this

Re: problems with scripting

2009-06-12 Thread Vitaly Ovchinnikov
a property? Should it be string or file type if it is a path? 3. What did I do wrong with calling of method? How to fix it? Thank you. On Fri, Jun 12, 2009 at 7:48 PM, Matt Neuburgm...@tidbits.com wrote: On Fri, 12 Jun 2009 14:45:48 +0400, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com said

Re: problems with scripting

2009-06-12 Thread Vitaly Ovchinnikov
, 2009 at 11:20 PM, Matt Neuburgm...@tidbits.com wrote: On or about 6/12/09 11:21 AM, thus spake Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com: MyDocument is derived from NSDocument and has property sourceFile and method - (id) handleDoSomethingScriptCommand: (NSScriptCommand *) cmd {NSLog

what is the easy way to update all bound controls

2009-05-25 Thread Vitaly Ovchinnikov
Hello list, I have a document that has a dimension parameter (NSSize). I bound this size to some text field using formatter. The formatter allows to show size both in millimeters and inches. User may switch units by NSPopupButton that is bound to shared user defaults controller. My formatter

Re: what is the easy way to update all bound controls

2009-05-25 Thread Vitaly Ovchinnikov
this action. On Mon, May 25, 2009 at 10:09 PM, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com wrote: Hello list, I have a document that has a dimension parameter (NSSize). I bound this size to some text field using formatter. The formatter allows to show size both in millimeters and inches

problems with inspector window

2009-05-21 Thread Vitaly Ovchinnikov
Hello list, I implemented inspector window like described here: http://borkware.com/rants/inspectors/ and now have a problem. I use NSUndoManager to store undo/redo information and if document is changed I can't close my inspector window, it asks about saving document in its main window. Is there

NSPredicateEditorRowTemplate and NSTokenField

2009-01-30 Thread Vitaly Ovchinnikov
Hello all, that's me again with my predicate editor problems :) I subclassed predicate editor's row and replaced default text editor with my NSTokenField in -templateViews. Predicates, that match my template, look like: ANY Tags IN {tag1, tag2, tag3} In -setPredicate I fill token field with

Re: NSPredicateEditorRowTemplate and NSTokenField

2009-01-30 Thread Vitaly Ovchinnikov
for predicate editor? Control? Row template? On Fri, Jan 30, 2009 at 11:21 AM, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com wrote: Hello all, that's me again with my predicate editor problems :) I subclassed predicate editor's row and replaced default text editor with my NSTokenField

Re: NSTask Leaking...

2009-01-29 Thread Vitaly Ovchinnikov
At least one leak is here: NSString *rMD5 = NSString alloc] initWithData:.]; You just put new string object to rMD5 and now need to release it. ... rMD5 = [self replace:@\n with:@ source:rMD5]; You just created another string object that you don't need to

Re: bind right part of NSPredicateEditor's row to array of strings

2009-01-29 Thread Vitaly Ovchinnikov
, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com wrote: Hello all, Still have problems with predicate editor. My items have tags and I want to be able to filter items by those tags. My document has array of all tags, so I added a row template with three popup buttons and wanted to bind

bind right part of NSPredicateEditor's row to array of strings

2009-01-28 Thread Vitaly Ovchinnikov
Hello all, Still have problems with predicate editor. My items have tags and I want to be able to filter items by those tags. My document has array of all tags, so I added a row template with three popup buttons and wanted to bind the third one to that array. I tried the following: NSPopUpButton

one more NSPredicateEditor question

2009-01-28 Thread Vitaly Ovchinnikov
Hello once again, just a quick question: It seems that predicate editor remains what right view was used for each operation. If I add a row with numeric parameter and two operators (less and greater) and then switch between them - predicate editor will remember value I entered for less and when I

How to know that DOMHTMLElement is loaded?

2009-01-25 Thread Vitaly Ovchinnikov
Hello all, I use WebView to print reports and have to change its contents on the fly via DOMHTMLElement's -setInnerHTML method (I have accessory control that allows to select what to print). HTML strings that I use may have images, WebView loads them in background and I need to wait until they

Does somebody know good tag-editor implementation?

2009-01-25 Thread Vitaly Ovchinnikov
Hello all, I need to add tags to my records-editing application and do not want to reinvent a wheel. Please point me to the applications that already have good tag editor. By tags I mean words or phrases that can be linked to the record. I need to enter these words manually or select them from

Turn autosaving on forever - is it OK?

2009-01-23 Thread Vitaly Ovchinnikov
Hello list, I implemented autosaving via -setAutosavingDelay call of NSDocumentController. I placed checkbox that allows to enable or disable autosaving in preferences and now think about removing this checkbox and leave autosaving enabled forever. Will I have any problems in that case? Maybe in

Re: Turn autosaving on forever - is it OK?

2009-01-23 Thread Vitaly Ovchinnikov
@gmail.com wrote: On Fri, Jan 23, 2009 at 2:37 PM, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com wrote: Hello list, I implemented autosaving via -setAutosavingDelay call of NSDocumentController. I placed checkbox that allows to enable or disable autosaving in preferences and now think about

Re: Binding of invisible controls: is lazy data loading possible?

2009-01-20 Thread Vitaly Ovchinnikov
Thanks to all, I replaced array of dictionaries with array of custom objects, that hold other objects that are used for binding. And then I implemented lazy evaluation of data exactly when they are necessary. In those leaf-objects. Now calculations start exactly when I want to show the data :)

Binding of invisible controls: is lazy data loading possible?

2009-01-19 Thread Vitaly Ovchinnikov
Hello all, I have a grid, array controller and a property of document that returns array. Grid is bound to controller, controller uses property as -contentArray. All works fine, but grid asks for data even if it is not visible. The problem is that document's property performs a lot of work to

Re: NSPredicateEditorRowTemplate for NSDate

2009-01-19 Thread Vitaly Ovchinnikov
Hey, boys and girls? Am I the first, who use NSPredicateEditor? I just found that there is no default template for time values... Please somebody confirm that miracle is over and I need to code all this data/time stuff myself :( On Sun, Jan 18, 2009 at 7:22 PM, Vitaly Ovchinnikov

Re: NSPredicateEditorRowTemplate for NSDate

2009-01-19 Thread Vitaly Ovchinnikov
like a starting point. Go to http://groups.google.com/group/des-moines-cocoaheads/files and look for NSPredicateEditor.zip (I'd direct link but the URL is a monster). -- Jim http://nukethemfromorbit.com On Mon, Jan 19, 2009 at 2:13 PM, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com

Re: Create App both for Tiger and Leopard

2009-01-18 Thread Vitaly Ovchinnikov
...@menumachine.com wrote: On 18/01/2009, at 5:50 PM, Vitaly Ovchinnikov wrote: When I try to compile the code against 10.4 SDK - I receive a lot of errors because there is no NSPredicateEditor on Tiger. I switched target platform version to 10.5 and now it compiles and links without a problem

Re: Create App both for Tiger and Leopard

2009-01-18 Thread Vitaly Ovchinnikov
NSPredicateEditor-related code, I will have no problems on Tiger? Thank you. On Sun, Jan 18, 2009 at 1:11 PM, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com wrote: There are many common words, but no answer on my question. The question is simple: can I include some Leopard-only code

Re: Create App both for Tiger and Leopard

2009-01-18 Thread Vitaly Ovchinnikov
...@codeweavers.com wrote: On Jan 18, 2009, at 4:15 AM, Vitaly Ovchinnikov wrote: Well, after reading your link one more time, I found this: http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/Using/chapter_3_section_4.html#//apple_ref/doc/uid/20002000-1114537

NSPredicateEditorRowTemplate for NSDate

2009-01-18 Thread Vitaly Ovchinnikov
Hello list, When I add a row template that edits date to predicate editor, it allows to perform simple comparisons. Like less or greater or equal etc. Smart folders in Finder allow to add clauses like Date is within last X weeks. I can't find a simple way to do the same. It seems that the only

Create App both for Tiger and Leopard

2009-01-17 Thread Vitaly Ovchinnikov
Hello list, I need to use NSPredicateEditor class in my app that should work both on Tiger and Leopard. But Tiger doesn't have such control, so I created two different NIBs and load one of them depending on current platform. Each NIB has it's own owner-class that implements some logic. Owner of

Re: completely messed up with bindings...

2009-01-15 Thread Vitaly Ovchinnikov
to register observer for every filter that will be set by -setFilter? On Thu, Jan 15, 2009 at 10:10 AM, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com wrote: Hello all, I have array of Filter objects in my document. Filters are used in two ways: 1. I can select one of them to filter my data 2

Re: NIB's owner doesn't get released because of NSArrayController

2009-01-15 Thread Vitaly Ovchinnikov
added method to MyViewController that breaks binding and call this method before releasing MyViewController. This helps, but I think there is a better way to do this. On Thu, Jan 15, 2009 at 5:44 PM, Jason Foreman ja...@threeve.org wrote: On Wed, Jan 14, 2009 at 11:58 PM, Vitaly Ovchinnikov

Re: completely messed up with bindings...

2009-01-15 Thread Vitaly Ovchinnikov
: On Jan 15, 2009, at 1:02 AM, Vitaly Ovchinnikov wrote: One question was solved. I found a correct keypath to bind my document on selected filter. It works with selection.self keypath. But my -setFilter method still doesn't get called when I change it's properties. Maybe it is right, but I need

Re: NIB's owner doesn't get released because of NSArrayController

2009-01-15 Thread Vitaly Ovchinnikov
, 2009 at 7:40 PM, Keary Suska cocoa-...@esoteritech.com wrote: On Jan 15, 2009, at 9:04 AM, Vitaly Ovchinnikov wrote: I'll try to describe it again. I have NIB, NSObject-based owner of this nib and NSView + NSArrayController in that NIB. Let's name owner of this NIB MyViewController. It has

Re: NIB's owner doesn't get released because of NSArrayController

2009-01-15 Thread Vitaly Ovchinnikov
). I just want to make sure that I don't need to release something else that I loaded with NIB. On Thu, Jan 15, 2009 at 8:42 PM, Keary Suska cocoa-...@esoteritech.com wrote: On Jan 15, 2009, at 10:11 AM, Vitaly Ovchinnikov wrote: Well, I got the idea and will try this. Just one question: do I

Re: NIB's owner doesn't get released because of NSArrayController

2009-01-15 Thread Vitaly Ovchinnikov
I finally did it :) I added third object to NIB and used it as proxy to store data and to bind array controller. Now array controller doesn't retain file's owner and I don't need to unbind anything, just release file's owner when I need. Thank you. On Thu, Jan 15, 2009 at 7:40 PM, Keary Suska

Re: NIB's owner doesn't get released because of NSArrayController

2009-01-14 Thread Vitaly Ovchinnikov
, 2009 at 12:51 AM, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com wrote: Hello all, I have a custom-loaded NIB file with NSView and NSArrayController. Array controller is bound to file's owner (NSObject's derived class) and use some keypath for contentArray. The problem is when I close a window

Re: NIB's owner doesn't get released because of NSArrayController

2009-01-14 Thread Vitaly Ovchinnikov
...@threeve.org wrote: On Wed, Jan 14, 2009 at 3:51 PM, Vitaly Ovchinnikov vitaly.ovchinni...@gmail.com wrote: Hello all, I have a custom-loaded NIB file with NSView and NSArrayController. Array controller is bound to file's owner (NSObject's derived class) and use some keypath for contentArray

completely messed up with bindings...

2009-01-14 Thread Vitaly Ovchinnikov
Hello all, I have array of Filter objects in my document. Filters are used in two ways: 1. I can select one of them to filter my data 2. I can browse them all and add, delete or/*modify any of them My document exposes this array via -filters/-setFilters pair. I have two NSArrayControllers: one

Print report using WebView

2008-10-01 Thread Vitaly Ovchinnikov
Hello, I need to print reports with various styles. The only reasonable way for me is to generate HTML and use WebView for rendering and print. I create WebView, generate HTML string and pass it to WebView. Then I create NSPrintOperation on it. All works fine, but it prints one empty page at the

Re: Print report using WebView

2008-10-01 Thread Vitaly Ovchinnikov
Empty page is added even if I try to print just one small symbol instead of report. On Thu, Oct 2, 2008 at 12:37 AM, Sherm Pendley [EMAIL PROTECTED] wrote: On Wed, Oct 1, 2008 at 4:15 PM, Vitaly Ovchinnikov [EMAIL PROTECTED] wrote: I need to print reports with various styles. The only

Rotate NSString... I give up :(

2008-08-06 Thread Vitaly Ovchinnikov
Hello, I need to draw NSString rotated to 90 degrees. Now I have the code: NSRect rcWhereToDraw = NSMakeRect(); // - rect is already rotated here [str drawInRect:rcWhereToDraw withAttributes:attributes]; // string will be drawn non-rotated as far as I know, I need something like this:

Re: Rotate NSString... I give up :(

2008-08-06 Thread Vitaly Ovchinnikov
[EMAIL PROTECTED] wrote: Shouldn't be this instead (check the translations' signs) ? [tr translateXBy:dx yBy:dy]; // center or rect will be the center of rotation [tr rotateByDegrees:90]; // rotate it [tr translateXBy:-dx yBy:-dy]; // move it back Le 6 août 08 à 08:46, Vitaly Ovchinnikov

Re: Rotate NSString... I give up :( [SOLVED]

2008-08-06 Thread Vitaly Ovchinnikov
to what it was so that when you draw the text in rcWhereToDraw, it will be correctly rotated. On Aug 6, 2008, at 1:46 AM, Vitaly Ovchinnikov wrote: Will test this too, but I don't think it will work. In my case I moved rectangle from it's real position to zero, then rotate around zero

Re: Rotate NSString... I give up :( [SOLVED]

2008-08-06 Thread Vitaly Ovchinnikov
PROTECTED] wrote: On Wed, Aug 6, 2008 at 4:37 PM, Vitaly Ovchinnikov [EMAIL PROTECTED] wrote: Yes, he right. I've just tested it and it works fine. I though that -translateXBy:yBy: will move my object, but it moved pivot point... This is hard, especially with revesed OY axis ;) Well, it all

My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
Hello, In windows there is a control called Listbox. It looks like grid with single column without header. Several rows and maybe a scrollbar. Example is here: http://www.java2s.com/Tutorial/VBImages/ListBoxSelectionEventAddValue.PNG I need to create control that works similar way. It will not be

Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
in much much easier manner. On Aug 2, 2008, at 12:21 PM, Vitaly Ovchinnikov wrote: Hello, In windows there is a control called Listbox. It looks like grid with single column without header. Several rows and maybe a scrollbar. Example is here: http://www.java2s.com/Tutorial/VBImages

Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
is not sufficient for your purpose, to allow NSScrollView to correctly scroll your view, easy setFrameSize of the one to correct value (to bound all content). That is sufficient. On Aug 2, 2008, at 12:40 PM, Vitaly Ovchinnikov wrote: The problem is that my control will work like listbox

Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
/blog/?p=17 for one example On Aug 2, 2008, at Sat-08 /02 /08-4:40 AM, Vitaly Ovchinnikov wrote: The problem is that my control will work like listbox, but don't exactly. Actually I need to draw every row myself. And these rows will have some padding and many graphics stuff inside

Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
, Vitaly Ovchinnikov wrote: The problem is that my control will work like listbox, but don't exactly. Actually I need to draw every row myself. And these rows will have some padding and many graphics stuff inside. And they will have adjustable height... And so on. I don't think that it is possible

Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
Unfortunately, I need completely different behavior... But I almost finished with cells and NSTableView and now it looks exactly as I need. So thanks to all who helped. On Sat, Aug 2, 2008 at 8:29 PM, Bertil Holmberg [EMAIL PROTECTED] wrote: I have implemented a custom control, the ListView.

Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
: On Sat, Aug 2, 2008 at 3:53 AM, Vitaly Ovchinnikov [EMAIL PROTECTED] wrote: The second question is how to hide highlight marker? I created my own cell, implemented it's -drawWithFrame - all seems to work fine. My drawing code draws selected and non-selected cells exactly as I need. But my cells

Re: draw string with ellipsis

2008-07-28 Thread Vitaly Ovchinnikov
drawInRect:rect withAttributes:attrs]; -Chaitanya On 28-Jul-08, at 1:47 AM, Vitaly Ovchinnikov wrote: Hello, What should I pass to -drawInRect's attributes to draw NSString as a single line with ellipsis at the end if it doesn't fit to the rect? Or point me to another method that can do

Re: draw string with ellipsis

2008-07-28 Thread Vitaly Ovchinnikov
This one aligns string horizontally, I need vertical alignment. Well, OK, will measure it's height and center it myself. On Mon, Jul 28, 2008 at 7:12 PM, Uli Kusterer [EMAIL PROTECTED] wrote: On 28.07.2008, at 08:23, Vitaly Ovchinnikov wrote: Thanks, exactly what I need. Btw, is there any

draw string with ellipsis

2008-07-27 Thread Vitaly Ovchinnikov
Hello, What should I pass to -drawInRect's attributes to draw NSString as a single line with ellipsis at the end if it doesn't fit to the rect? Or point me to another method that can do that. Thank you. ___ Cocoa-dev mailing list

How to receive my own crash reports?

2008-07-21 Thread Vitaly Ovchinnikov
Hello, Apple's CrashReporter sends crash reports to Apple only and there is no way for me to receive them too. ILCrashReporter from http://www.infinite-loop.dk doesn't know that in Leopard crash reports files named differently than in Tiger and it reads old reports instead of new ones. What I

Re: Being notified of changes to a file

2008-07-21 Thread Vitaly Ovchinnikov
I don't think that you can capture stdout. You need to create a pipe and redirect your script's output there. And then read from that pipe, parse and update your progress indicator. A good starting point is here: http://www.cocoadev.com/index.pl?NSPipe On Mon, Jul 21, 2008 at 11:56 AM, Yann

Re: Making a text cell in a table editable

2008-07-10 Thread Vitaly Ovchinnikov
I replaced my code with this one: MyObject *p = [[MyObject alloc] init]; [arrayController addObject:p]; [p release]; [grid editColumn:0 row:[grid selectedRow] withEvent:nil selected:YES]; it works fine, NSTableView selects new row, -editColumn receives correct row number and starts editing. So,

Re: Making a text cell in a table editable

2008-07-10 Thread Vitaly Ovchinnikov
editColumn:0 row:row withEvent:nil selected:YES]; HTH Abizer. On 10 Jul 2008, at 07:46, Vitaly Ovchinnikov wrote: I replaced my code with this one: MyObject *p = [[MyObject alloc] init]; [arrayController addObject:p]; [p release]; [grid editColumn:0 row:[grid selectedRow] withEvent:nil

Re: Making a text cell in a table editable

2008-07-09 Thread Vitaly Ovchinnikov
I have a similar question. My NSTableView is bound to NSArrayController and I need to make cell editable immediately after adding new row. Rows added with default values and I need to allow user to edit them easy. I have an Add button that fires action like this: - (void) onAdd: (id) sender {

Re: Set string value

2008-07-09 Thread Vitaly Ovchinnikov
try this: NSString *string = [textField stringValue]; int stringLength = [string length]; NSString *msg = [NSString stringWithFormat:@\[EMAIL PROTECTED] is %d characters long, string, stringLength] [textLabel setStringValue:msg]; NSLog(@%@, string); On Thu, Jul 10, 2008 at 12:12 AM, Kevin

Re: Making a text cell in a table editable

2008-07-09 Thread Vitaly Ovchinnikov
In my case I just use [grid selectedRow], because NSTableView selects new row for me. Thanks, will try your method too. On Thu, Jul 10, 2008 at 12:49 AM, I. Savant [EMAIL PROTECTED] wrote: Same goes for -add: ... You'll need to force the array controller to -rearrangeObjects before asking the

Re: Importing Xcode 2.x projects into Xcode 3

2008-07-08 Thread Vitaly Ovchinnikov
I have problems with connecting actions from custom cotrnols. It is impossible to drag an action from my own control (subclassed NSControl) in IB3.0. I downloaded IB3.1 from iPhone SDK and all work fine there. On Wed, Jul 9, 2008 at 5:33 AM, j o a r [EMAIL PROTECTED] wrote: On Jul 8, 2008, at

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Vitaly Ovchinnikov
think I've seen this a few times in IB3. But I fiddled a bit, saved, restarted and then it was working as I expected. I wrote it off to a bug at the time. On 04/07/2008, at 4:19 PM, Vitaly Ovchinnikov wrote: Hello all, I'm porting my project from XCode 2.5 to 3.0 and have a big trouble

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Vitaly Ovchinnikov
Thanks for the answer. I have submitted a bug. On Sat, Jul 5, 2008 at 4:18 PM, Andreas Mayer [EMAIL PROTECTED] wrote: Am 05.07.2008 um 08:37 Uhr schrieb Vitaly Ovchinnikov: I didn't see Sent Action group. It doesn't look like an IB bug. Or it looks like a very big bug, but nobody reported

Re: IB3 and custom controls: problem with actions

2008-07-05 Thread Vitaly Ovchinnikov
:19 PM, Vitaly Ovchinnikov wrote: After upgrade to XCode 3.0 I found out that now it is impossible. Old links are still alive (marked with yellow triangles), but I can't create a new one. I don't see Sent action group by right-clicking my controls. If I perform Ctrl+Drag from my control

IB3 and custom controls: problem with actions

2008-07-04 Thread Vitaly Ovchinnikov
Hello all, I'm porting my project from XCode 2.5 to 3.0 and have a big trouble with custom controls. I have some custom controls (subclassed from NSControl), that I use in Interface Builder to create GUI. When I used IB 2.5, I placed Custom View object to the window, changed it's class and then

Re: Problem with updating NSProgressIndicator

2008-05-21 Thread Vitaly Ovchinnikov
Thank you. It's up to you what OS you want to support, a trade-off between development/testing time and market size. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

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 = %@, [NSThread

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

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 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

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 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 generate

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 reason

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
I apologize for not being able to offer an Ah-ha!!! sort of solution immediately, and also for this very long e-mail. I don't know if my suggestions will help, but they may at least lead to cleaner code, and may perhaps solve your problems. If I may... Thanks for your suggestions, but the

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
one more topic to comment: Also: you call [progress setHidden:NO] every time that the timer fires. This may prove inefficient later on, so I'd simply leave it unhidden. real code is a bit more complex: if user changed some parameters, I start the big calculation and show the progress bar. Among

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
Do I need to report this to Apple? Or what? Not unless you can reproduce it on 10.5 somehow. The only thing Apple would fix in 10.4 nowadays is some kind of critical security bug or catastrophic system error. Well, actually I already submitted this problem to apple. Maybe they'll take a