Problem with updating NSProgressIndicator

2008-05-19 Thread Vitaly Ovchinnikov
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 calculating thread with the current progress (structure with data). I put this structures to the

Re: Initialize a subclass object with a base class object

2008-05-19 Thread Liviu Andron
On Tue, May 20, 2008 at 2:35 AM, <[EMAIL PROTECTED]> (!sic) wrote: > > > > I am not sure I understand the OP's question, but the shortest answer > seems to be to override the super class's designated initializer. > > I think he wants an Objective-C equivalent to a C++ copy constructor. That > is...

Re: cocoa mentoring - Berlin, Germany

2008-05-19 Thread Carsten
Well, now we are two newbies. Now we just need some experts :) C 2008/5/19 Gert Andreas <[EMAIL PROTECTED]>: > Hello, > i had a similar idea some time ago as i do really like the concept of > CocoaHeads. > Unfortunately there is nothing similar in Germany and especially in Berlin. > So i'd reall

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Graham Cox
Hear hear. It has already happened to one platform, and look how abysmally inconsistent it has become for users. I for one do not want to see every Tom, Dick and Harry throwing Cocoa around and doing it badly (even if I do so myself ;-). Yes, that's probably elitist. I offer no apology.

bindings tutorial doesn't work

2008-05-19 Thread Daniel Child
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 reproduced it correctly for XCode 3. However, I ge

Re: NSStream, NSInputStream, NSOutputStream

2008-05-19 Thread John MacMullin
Ah, thank you. John On May 19, 2008, at 6:32 PM, Ken Thomases wrote: On May 19, 2008, at 8:07 PM, John MacMullin wrote: The error returned is: [ostream streamError]: NSError "POSIX error: Broken pipe" Domain=NSPOSIXErrorDomain Code=32 I have looked at the stream error docs in NSStream and thi

Localization and plural rules revisited

2008-05-19 Thread Ricky Sharp
There was a very short thread on NSLocalizedString regarding plural rules: My app is mainly localization ready, but I still need to modify some problem code regarding plurals. Specifically, I have code which takes some qu

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Michael Ash
On Tue, May 20, 2008 at 1:33 AM, Peter Duniho <[EMAIL PROTECTED]> wrote: >> Date: Mon, 19 May 2008 19:50:57 +0800 >> From: "Michael Ash" <[EMAIL PROTECTED]> >> >> [...] the existence or even the volume of >> these complains is not evidence of anything other than that this >> platform actually attra

Re: validateMenuItem() not always being called

2008-05-19 Thread jeffs87
So does your custom view implement the action method(s) for the item(s) on the Edit menu which you are trying to validate (e.g., -cut:, -:copy, etc)? If not, your custom view's validateMenuItem method won't be called for those items. That was it:) thanks Jeff __

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Rua Haszard Morris
With you 100% on all this below. Been having trouble coming up with something useful to add to all these discussions about Cocoa & Apple Developer Documentation .. what you said below sums a lot of it up. These points really resonate for me: ++ "explaining why _their_ API and paradigm is s

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Andreas Mayer
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 already pointed out, you can do the same things in every touring complete l

Re: Cocoa-dev Digest, Vol 5, Issue 837

2008-05-19 Thread Alex Kac
On May 19, 2008, at 8:15 PM, Torsten Curdt wrote: On May 20, 2008, at 01:49, Alex Kac wrote: I think one of the issues here is you're comparing .NET - which is not the primary Windows framework - to Cocoa - which is. They are comparable and many people do compare them, but truthfully most comm

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Alex Kac
On May 19, 2008, at 8:15 PM, [EMAIL PROTECTED] wrote: Don't underestimate the utility of being able to make use of Objective- C's dynamic features outside of the core frameworks like AppKit and Core Data. I'm not. But my point is that in most of our apps you'll find one or two key things

Re: validateMenuItem() not always being called

2008-05-19 Thread Michael Babin
On May 19, 2008, at 7:08 PM, [EMAIL PROTECTED] wrote: Any object's validateMenuItem method is only called for menu items that would message that object if they were invoked. That means: * Menu items whose target directly points to that object * Menu items whose target is "first responder", a

Re: NSStream, NSInputStream, NSOutputStream

2008-05-19 Thread Ken Thomases
On May 19, 2008, at 8:07 PM, John MacMullin wrote: The error returned is: [ostream streamError]: NSError "POSIX error: Broken pipe" Domain=NSPOSIXErrorDomain Code=32 I have looked at the stream error docs in NSStream and this error is not even reference. Any ideas on what this means and how

Re: NSStream, NSInputStream, NSOutputStream

2008-05-19 Thread Michael Vannorsdel
How are you creating the stream? On May 19, 2008, at 7:07 PM, John MacMullin wrote: Continuing on my efforts re: my modified Echo Server, the following code is crashing. - (void)startStreamWrite:(NSOutputStream *)ostream { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc]init];

Re: Bindings: Allows Editing Multiple Values Selection

2008-05-19 Thread Scott Ellsworth
> 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 Values Selection You do then need to make the conceptua

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Nick Zitzmann
On May 19, 2008, at 7:07 PM, Brad Gibbs wrote: It all makes perfect sense, I just didn't know that not alloc'ing and init'ing was a fully legit move. Well, you do need to set the pointer to point to something, or else accessing it will in the best case raise an exception, and in the wor

NSStream, NSInputStream, NSOutputStream

2008-05-19 Thread John MacMullin
Continuing on my efforts re: my modified Echo Server, the following code is crashing. - (void)startStreamWrite:(NSOutputStream *)ostream { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc]init]; while ([ostream hasSpaceAvailable]) { if (remainingToWrite > 0) {

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Brad Gibbs
Thanks to all who replied. It all makes perfect sense, I just didn't know that not alloc'ing and init'ing was a fully legit move. I will add Masters of the Void to the already tall stack of reading material. On May 19, 2008, at 6:03 PM, Jack Repenning wrote: On May 19, 2008, at 5:18 PM,

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Jack Repenning
On May 19, 2008, at 5:18 PM, Brad Gibbs wrote: Is it because numberToPrint is simply pointing to newNumber objects in the array that have already been allocated and initialized? Yes, both newNumber and numberToPrint are merely pointers to some object. These objects are created in the first

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Simon Wolf
On 20 May 2008, at 01:18, Brad Gibbs wrote: On pages 36-7 of Aaron Hillegass' new book, he provides sample code for a Foundation Tool called Lottery. The code is below: NSMutableArray *array; array = [[NSMutableArray alloc] init]; int i; for (i = 0; i < 10; i++) {

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Frank McGeough
The first loop is allocating an object an initializing it with the value of the loop variable (i) multiplied by 3. The second loop is just assigning a pointer to that allocated object. It could have also been written : for (i = 0 i < 10; i++) { NSLog(@"The number at index %d is %@", i,

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Nick Zitzmann
On May 19, 2008, at 6:18 PM, Brad Gibbs wrote: It compiled and ran as expected, too. But, when I tried to eliminate allocation and initialization for newNumber in the first 'for loop', the app threw an exception. I don't see an explanation in the book re why numberToPrint can be, but doe

Newbie Question re Allocation & Initialization

2008-05-19 Thread Brad Gibbs
On pages 36-7 of Aaron Hillegass' new book, he provides sample code for a Foundation Tool called Lottery. The code is below: NSMutableArray *array; array = [[NSMutableArray alloc] init]; int i; for (i = 0; i < 10; i++) { NSNumber *newNumber = [[NSNum

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Torsten Curdt
On May 20, 2008, at 01:49, Alex Kac wrote: I think one of the issues here is you're comparing .NET - which is not the primary Windows framework - to Cocoa - which is. They are comparable and many people do compare them, but truthfully most commercial software on Windows will not be written

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Chris Hanson
On May 19, 2008, at 4:33 PM, Alex Kac wrote: 2) Many of the examples you're looking for are not so much in people's apps, but in AppKit itself meaning that AppKit would have had to be far more complex, big, and clunky if not for this feature. Don't underestimate the utility of being able to

Re: validateMenuItem() not always being called

2008-05-19 Thread jeffs87
Hi Any object's validateMenuItem method is only called for menu items that would message that object if they were invoked. That means:  * Menu items whose target directly points to that object  * Menu items whose target is "first responder", and your object is on the responder chain and impl

Re: Bindings: Allows Editing Multiple Values Selection

2008-05-19 Thread Ken Thomases
This is an example where the reference documentation doesn't guide you to the relevant conceptual documentation very well. On May 19, 2008, at 5:46 AM, Gerriet M. Denkmann wrote: Trying to change this, to get some understanding, I looked at the check boxes kindly offered by InterfaceBuilder.

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Philippe Mougin
Le 20 mai 08 à 00:06, Peter Duniho a écrit : C# provides "partial" class implementations for when you want to split functionality across multiple module files (one use of categories). As you wrote, this is one use of categories. However, it is not this usage that makes categories so powe

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Alex Kac
I think one of the issues here is you're comparing .NET - which is not the primary Windows framework - to Cocoa - which is. They are comparable and many people do compare them, but truthfully most commercial software on Windows will not be written with .NET while most on OS X will be Cocoa.

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Alex Kac
I appreciate the example. It's certainly reasonably elegant and to the point, and it's more "real world" than some of the other ones (bridging Cocoa to another language? yeah, right...a) it's not like you can't interface between languages with other languages, and b) this is not the kind of thin

Non activating window activates?

2008-05-19 Thread Brett Powley
Hi, I have a faceless background application (using LSUIElement) with a non activating floating palette (set in Interface Builder) that floats above all other applications (using setLevel:). The floating part works fine. The non activating part mostly works fine too, unless I click on an

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Andy Lee
On May 19, 2008, at 6:06 PM, Peter Duniho wrote: Date: Mon, 19 May 2008 15:51:07 -0400 From: Andy Lee <[EMAIL PROTECTED]> * Objective-C allows you to create categories, effectively modifying a class's interface at runtime. C# provides "partial" class implementations for when you want to spl

[ANN] FeedbackReporter framework

2008-05-19 Thread Torsten Curdt
Hey guys! One of the newbies does his first contribution back to the community :) http://vafer.org/blog/2008052051 I've just got the first version of the "FeedbackReporter" framework out. It let's you easily gather crash reports and logs along side with platform information, custom info

Re: Initialize a subclass object with a base class object

2008-05-19 Thread stephen joseph butler
On Mon, May 19, 2008 at 6:00 PM, stephen joseph butler <[EMAIL PROTECTED]> wrote: > ButtonCell *bCell = getFromSomewhere(); > MyButtonCell *mCell = new MyButtonCell( &bCell ); Ermm... MyButtonCell *mCell = new MyButtonCell( *bCell ); But you knew that :) ___

Re: KVO Response for incomplete paths

2008-05-19 Thread Ken Thomases
On May 19, 2008, at 2:02 PM, Gordon Apple wrote: 1. What happened when you try to observe a property that doesn't exist? (e.g., is there is no shadow, there is no "shadow.angle". Do I have to test "hasShadow" to disallow observing "shadow.angle when the properties list is scanned? 2. Wh

Re: Initialize a subclass object with a base class object

2008-05-19 Thread stephen joseph butler
On Mon, May 19, 2008 at 5:52 PM, Erik Buck <[EMAIL PROTECTED]> wrote: > I am not sure I understand the OP's question, but the shortest answer seems > to be to override the super class's designated initializer. I think he wants an Objective-C equivalent to a C++ copy constructor. That is... Butto

Re: Custom NSPredicateEditorRowTemplate with Single Item

2008-05-19 Thread Peter Ammon
On May 19, 2008, at 12:05 PM, Steven Huey wrote: Hello, I'm trying to create a custom NSPredicateEditorRowTemplate subclass that has a single view, an NSPopUpButton with a single item and am having some trouble. Basically what I'm trying to do is create a predicate like the one in Apple

Re: Initialize a subclass object with a base class object

2008-05-19 Thread Erik Buck
I am not sure I understand the OP's question, but the shortest answer seems to be to override the super class's designated initializer. http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_6.html http://developer.apple.com/documentation

Re: Background Application.

2008-05-19 Thread Brett Powley
On 19/05/2008, at 9:39 PM, ninad walvekar wrote: hi, Thank you for the reply regarding background application. I have few more queries:- 1. Can the same application which is now running in the background be made to work as a normal gui application? It depends what you want your "normal GU

Initialize a subclass object with a base class object

2008-05-19 Thread Liviu Andron
Problem: I want to extend NSButtonCell (to keep some additional data) => MyButtonCell, but this MyButtonCell objects must be initialized with some base classes object @interface MyButtonCell: NSButtonCell { @private MyData* fData; } +(id)issueWithCell:(NSButtonCell*)cell; @end ///

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
Date: Mon, 19 May 2008 15:51:07 -0400 From: Andy Lee <[EMAIL PROTECTED]> * Objective-C allows you to create categories, effectively modifying a class's interface at runtime. C# provides "partial" class implementations for when you want to split functionality across multiple module files (on

[moderator] Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Scott Anguish
This is not a helpful attitude to take when this discussion is going so well. Please, either be helpful or don't take part. scott moderator On May 18, 2008, at 4:38 PM, P Teeson wrote: begin rant: Oh me oh my the poor newcomers to Cocoa. Sorry folks back in the days of 360 mainframes th

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
On May 19, 2008, at 2:20 PM, Jean-Daniel Dupas wrote: And as we are here, note also that Key-Value-Coding uses dynamic properties of the language. Yes, it does. OK, implementing valueForKey: and setValue:forKey: is probably easy using introspection. Likewise reflection. And in .NET, the

Dynamic langauge support for fault implementation in Enterpise Objects Framework

2008-05-19 Thread Erik Buck
One of the coolest examples of dynamic language untility was provided By Apple's Enterpriise Objects Framework (EOF). Here is a brief quote from http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/WebObjects_4.5/System/Documentation/Developer/EnterpriseObjects/DevGuide/EOFDevGu

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
On May 19, 2008, at 2:05 PM, Greg Titus wrote: On May 19, 2008, at 12:08 PM, Peter Duniho wrote: [...] However, _with_ reflection we can do much of the same kinds of things that Obj-C does, without knowing in advance the classes that might use the NSUndoManager class. One advantage I see i

Examples of dynamic language feature exploitation by Cocoa from .Net perspective

2008-05-19 Thread Erik Buck
First, let me say that I have enjoyed the Kevin Hoffman's .Net Addicts Blog posts comparing Cocoa and Objective-C to .Net and C#. I personally think C# is a great language and I appreciate .Net as well. There are many programming tasks which are easier and simpler with the aid of dynamic langu

Re: NSProgressIndicator and some very basic stuff ...

2008-05-19 Thread Mike Abdullah
On 19 May 2008, at 20:58, John Love wrote: I am having some basic problems getting an indeterminate NSProgressIndicator (INSPI) to spin. Since I have just recently started to learn XCODE and Cocoa, I began with "Learning Cocoa and Objective C". I have also printed out much of Apple's doc

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Andy Lee
On May 19, 2008, at 4:36 PM, Peter Duniho wrote: 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. I wonder -- just thinking out loud now -- if this standard is too high for Objective-C to meet. I also wonder

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jean-Daniel Dupas
Le 19 mai 08 à 22:36, Peter Duniho a écrit : Date: Mon, 19 May 2008 20:31:02 +0200 From: Andreas Mayer <[EMAIL PROTECTED]> This is (part of) a method that handles an AppleScript command send to the application. One possible argument is the color to be used for display: - (id)handleDisplayC

Re: Delegates

2008-05-19 Thread Mike Abdullah
On 19 May 2008, at 21:23, I. Savant wrote: On Mon, May 19, 2008 at 2:54 PM, Michael Vannorsdel <[EMAIL PROTECTED] > wrote: There's nothing that guarantees a Cocoa delegate will act for another object and that the represented object won't act how it wants as well. Sometimes a delegate metho

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread ben syverson
On May 19, 2008, at 3:36 PM, Peter Duniho wrote: I appreciate the example. It's certainly reasonably elegant and to the point, and it's more "real world" than some of the other ones (bridging Cocoa to another language? yeah, right...a) it's not like you can't interface between languages

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Greg Titus
On May 19, 2008, at 12:08 PM, Peter Duniho wrote: [...] However, _with_ reflection we can do much of the same kinds of things that Obj-C does, without knowing in advance the classes that might use the NSUndoManager class. One advantage I see in Cocoa is that, because classes may respond to

Re: Delegates

2008-05-19 Thread Jeff LaMarche
On May 19, 2008, at 5:00 PM, john darnell wrote: yeah, I know...I'm dating myself with the use of the word "grok" Huh? You're not dating anything. :P I think grok gets used on this list at least a few times a week. Grok is part of the geek lexicon, even among people who have no idea wher

RE: Delegates

2008-05-19 Thread john darnell
I believe it was Carl Jung who said that ideas needed meathooks in the mind to help us retain/organize our thoughts and many of you have helped me figure out the right meathooks to use when attempting to grok the meaning of delegates (yeah, I know...I'm dating myself with the use of the word "grok

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jean-Daniel Dupas
Le 19 mai 08 à 22:36, Peter Duniho a écrit : Date: Mon, 19 May 2008 20:31:02 +0200 From: Andreas Mayer <[EMAIL PROTECTED]> This is (part of) a method that handles an AppleScript command send to the application. One possible argument is the color to be used for display: - (id)handleDisplayC

Re: Delegates

2008-05-19 Thread ben syverson
On May 19, 2008, at 1:54 PM, Michael Vannorsdel wrote: I'm just saying Cocoa delegates don't always act in dictionary form. I know this discussion can go round and round, but I still think reading the english dictionary for delegates won't tell you the whole story on Cocoa delegates. Wit

Re: Delegates

2008-05-19 Thread Michael Vannorsdel
Ditto, I'll surrender the last word to you. Though I'm interested to know if the OP is having any success or not. This thread got a little sidetracked. On May 19, 2008, at 2:23 PM, I. Savant wrote: I think that's the last I'll comment on the dictionary definition matter; it's a silly arg

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Andy Lee
On May 19, 2008, at 4:29 PM, Jayson Adams wrote: On May 19, 2008, at 12:51 PM, Andy Lee wrote: * Interface Builder is sometimes given as an example of an app that would be more difficult to write in, say, Java. It's not - I did this in a past life, with Control-drag to form connections, "

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
Date: Mon, 19 May 2008 20:31:02 +0200 From: Andreas Mayer <[EMAIL PROTECTED]> This is (part of) a method that handles an AppleScript command send to the application. One possible argument is the color to be used for display: - (id)handleDisplayCommand:(NSScriptCommand *)command { NSDicti

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jayson Adams
On May 19, 2008, at 12:51 PM, Andy Lee wrote: * Interface Builder is sometimes given as an example of an app that would be more difficult to write in, say, Java. It's not - I did this in a past life, with Control-drag to form connections, "nib" archive files and all that. Best, __jays

[OT] Wales/South West NSCoder Night (UK)

2008-05-19 Thread Jonathan Dann
Hi Guys, In follow-up to the last open invite I've had a couple of responses to starting an NSCoder night. The proposed location is to vary between Cardiff and Bristol, is anyone from the surrounding areas interested? Please contact me off-list. Look forward to hearing from you. Jon

Re: Delegates

2008-05-19 Thread I. Savant
On Mon, May 19, 2008 at 2:54 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > There's nothing that guarantees a Cocoa delegate will act for another object > and that the represented object won't act how it wants as well. Sometimes a > delegate method is just a notification something happened/ha

Re: Programmatically get treecontroller selection

2008-05-19 Thread Hamish Allan
On Mon, May 19, 2008 at 8:18 PM, Jonathan Dann <[EMAIL PROTECTED]> wrote: > The way its > traditionally (and designed to be) used is that the tree controller is the > outline view's data source. This statement is a little misleading: the tree controller is designed to have bindings from the outli

Re: How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread Jens Alfke
On 19 May '08, at 12:27 PM, Jack Repenning wrote: Does NSURLDownload end up using OpenSSL to certify? In which case, it would run afoul of the problem that OS X OpenSSL ships with no CA chain. No. None of Apple's security software uses OpenSSL; that library's in the OS for compatibility

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Hamish Allan
On Mon, May 19, 2008 at 6:03 AM, Peter Duniho <[EMAIL PROTECTED]> wrote: > And as long as you guys keep insisting that there's nothing wrong with the > environment, and that people "just need to get used to it" and "then they'll > love it", you're not going to get the kind of developer excitement

NSProgressIndicator and some very basic stuff ...

2008-05-19 Thread John Love
I am having some basic problems getting an indeterminate NSProgressIndicator (INSPI) to spin. Since I have just recently started to learn XCODE and Cocoa, I began with "Learning Cocoa and Objective C". I have also printed out much of Apple's docs, e.g., on the INSPI. I just finished developing a

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Andy Lee
Am 19.05.2008 um 13:11 Uhr schrieb Peter Duniho: I just don't see how declaring an interface and then using it is so inferior to an informal protocol that it justifies the entire message-dispatching paradigm, especially given that there are in fact advantages to the former. At best, it's a

Re: How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread Nick Zitzmann
On May 19, 2008, at 1:27 PM, Jack Repenning wrote: Does NSURLDownload end up using OpenSSL to certify? In which case, it would run afoul of the problem that OS X OpenSSL ships with no CA chain. No; the NSURL stuff uses Apple's SSL engine (CDSA), which does not use OpenSSL. Nick Zitzm

Turn off saveDocumentWithDelegate:didSaveSelector:contextInfo: check for modified file in 10.5?

2008-05-19 Thread Barry Wark
I think I remember seeing a discussion of this issue before, but can't seem to find it in the archives/Google. Pointers greatly appreciated... I'm working on a NSPersistentDocument-based CoreData app that was developed on 10.4. We've since moved to the 10.5.sdk. The document in this app spawns a w

Re: How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread Jack Repenning
On May 19, 2008, at 7:40 AM, Jens Alfke wrote: If the issue is that the cert is self-signed, or uses a root authority that isn't trusted by the system, you can use Keychain APIs to add that cert and mark it as trusted. If you do that, NSURLDownload won't complain anymore. Does NSURLDow

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Sherm Pendley
On Mon, May 19, 2008 at 1:33 PM, Peter Duniho <[EMAIL PROTECTED]> wrote: Well, I'm still waiting for someone to show me how that flexibility is used. I'll take that challenge. :-) The flexibility of the Objective-C language & runtime allow me to intercept messages sent in either direction, and

Re: Programmatically get treecontroller selection

2008-05-19 Thread Jonathan Dann
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 populated by a custom datasource as I have to do some dat

Re: XML schema support (Stuart Malin)

2008-05-19 Thread Richard Wolf
Just an FYI, NSXMLDocument's initWithContentsOfURL:options:error: and initWithData:options:error: methods allow you to verify an XML document using a DTD or XMLSchema XSD. One of the "options" you can XOR is NSXMLDocumentValidate. As verifying against a DTD or XSD are, pretty much, the

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
On May 19, 2008, at 11:21 AM, Greg Titus wrote: [...] I've worked in Java quite a bit in the past, and I disagree, but more to the point: I've never done significant work in C# before, so if that's an environment you are familiar with and you are willing, I'd very much like to see what p

Re: Delegates

2008-05-19 Thread Andy Lee
On May 19, 2008, at 2:54 PM, Michael Vannorsdel wrote: I know this discussion can go round and round, but I still think reading the english dictionary for delegates won't tell you the whole story on Cocoa delegates. There's also Wikipedia:

Custom NSPredicateEditorRowTemplate with Single Item

2008-05-19 Thread Steven Huey
Hello, I'm trying to create a custom NSPredicateEditorRowTemplate subclass that has a single view, an NSPopUpButton with a single item and am having some trouble. Basically what I'm trying to do is create a predicate like the one in Apple Mail when creating a rule for handling e-mail in w

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Andreas Mayer
Am 19.05.2008 um 13:11 Uhr schrieb Peter Duniho: I just don't see how declaring an interface and then using it is so inferior to an informal protocol that it justifies the entire message-dispatching paradigm, especially given that there are in fact advantages to the former. At best, it's

KVO Response for incomplete paths

2008-05-19 Thread Gordon Apple
I'm currently trying to implement undo for drawing using code based on Sketch and am running into KVO problems on "Shape" properties. Sketch uses a dictionary of Properties that applies to selected Shapes (i.e., "Graphics"). Some of my parameters are compound, e.g., "Shadow" is a referenced o

Re: Delegates

2008-05-19 Thread Andy Lee
D'oh, I see that point was already made. --Andy On May 19, 2008, at 2:52 PM, Andy Lee wrote: Another difference between delegates and observers is that delegates sometimes have the power of veto over some operation (e.g., - applicationShouldTerminate: and -textShouldEndEditing:), whereas o

Re: Delegates

2008-05-19 Thread Jens Alfke
On 19 May '08, at 9:22 AM, john darnell wrote: As far as I can tell, it is kind of like a virtual function (virtual because I, the programmer, am expected to flesh it out) that resembles an event attached to a given class. You're basically correct, but I think you're overcomplicating the co

Re: Delegates

2008-05-19 Thread Michael Vannorsdel
There's nothing that guarantees a Cocoa delegate will act for another object and that the represented object won't act how it wants as well. Sometimes a delegate method is just a notification something happened/happening without the delegate having any say on the matter or affect on the re

Re: Delegates

2008-05-19 Thread Andy Lee
Another difference between delegates and observers is that delegates sometimes have the power of veto over some operation (e.g., - applicationShouldTerminate: and -textShouldEndEditing:), whereas observers of notifications are merely notified. --Andy On May 19, 2008, at 1:41 PM, I. Savant w

Re: How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread Jens Alfke
On 19 May '08, at 8:19 AM, parag vibhute wrote: I implemented same but whenever I launched my application it asks to change trust settings. Why is it like that? What exactly did you mean by "same"? Which code did you implement? I would guess that the Security framework is requiring user

Re: Delegates

2008-05-19 Thread I. Savant
> In this respect, an object is entrusting a task or responsibility to > something else that has no direct control over the 'superior' object's > workings, but the 'superior' object is relying on the 'delegate' to > perform some task if necessary or to find something out and let it's > 'superior'

Re: Delegates

2008-05-19 Thread I. Savant
On Mon, May 19, 2008 at 2:00 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > Even delegation is not a commonly known term in my experience (it's used for > several differing ideas in the US). Not sure what you mean there. To 'delegate' is to "entrust (a task or responsibility) to another

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Alex Kac
On May 19, 2008, at 12:27 PM, Jeff LaMarche wrote: On May 19, 2008, at 1:11 PM, Alex Kac wrote: However I believe that 99% of the complaints given - including mine - are due to that really high hill. I do not disagree with you there. It's a challenge, and frustrating at times, and once

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jeff LaMarche
On May 19, 2008, at 1:42 PM, Peter Duniho wrote: I agree with this statement. However, the conclusion is flawed. You are welcome to your opinion, even if "flawed" ;) Seriously, though, from some of your comments, I'm not sure that I communicated my "conclusion" very well, because you seem

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Greg Titus
On May 19, 2008, at 11:00 AM, Peter Duniho wrote: On May 19, 2008, at 10:48 AM, Greg Titus wrote: You've translated the Objective-C syntax into C# syntax, but the point of the question is to think about what prepareWithInvocationTarget() does. How would you write that method in C#? Well

Re: cocoa mentoring - Berlin, Germany

2008-05-19 Thread Gert Andreas
Hello, i had a similar idea some time ago as i do really like the concept of CocoaHeads. Unfortunately there is nothing similar in Germany and especially in Berlin. So i'd really appreciate occasional meetings. Kind regards, Gert Andreas Am 15.05.2008 um 20:07 schrieb Carsten: While we a

Re: CATransactions not working

2008-05-19 Thread Adam Radestock
Exactly why I didn't say in the first place... :-) On 19 May 2008, at 19:09, Paul Bailey wrote: Unfortunately, by mentioning the magic word ("iPhone"), you won't be getting any answers on this mailing list, since the iPhone SDK is still under an NDA... Cheers, Paul On Mon, May 19, 2008 a

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Bill Bumgarner
On May 19, 2008, at 11:00 AM, Peter Duniho wrote: That said, because of the existence of reflection in C# and Java, similar functionality isn't really that difficult in those languages. It's trivial to take any arbitrary class or instance of a class and invoke any arbitrary named method wit

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Greg Titus
On May 19, 2008, at 10:52 AM, David Wilson wrote: On Mon, May 19, 2008 at 1:33 PM, Peter Duniho <[EMAIL PROTECTED]> wrote: Maybe I'm misinformed about how message-dispatching in Objective-C works. But AFAIK, it's nothing like the direct invocation and v-table mechanisms that exist in C# an

Re: CATransactions not working

2008-05-19 Thread Paul Bailey
Unfortunately, by mentioning the magic word ("iPhone"), you won't be getting any answers on this mailing list, since the iPhone SDK is still under an NDA... Cheers, Paul On Mon, May 19, 2008 at 7:03 PM, Adam Radestock <[EMAIL PROTECTED]> wrote: > This is actually on iPhone... Core Animation is

Re: CATransactions not working

2008-05-19 Thread Adam Radestock
This is actually on iPhone... Core Animation is always active on iPhone, there's no wantsLayer function... Here is all the relevent code: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; { [self doHighlightEffect:SGUIButtonOpaqueEffect]; [super touchesBegan:tou

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
On May 19, 2008, at 10:48 AM, Greg Titus wrote: You've translated the Objective-C syntax into C# syntax, but the point of the question is to think about what prepareWithInvocationTarget() does. How would you write that method in C#? Well, it was a poorly stated question then. His primary

Re: Delegates

2008-05-19 Thread Michael Vannorsdel
Even delegation is not a commonly known term in my experience (it's used for several differing ideas in the US). I try my best to give terms and examples with the best chance of grasping, especially with beginner concepts. Even the truest term of delegate doesn't perfectly fit Cocoa deleg

Re: Learning Curve/Documentation Challenge/Recommendation

2008-05-19 Thread Scott Ribe
> But my argument > stands that I prefer ruby syntax more now than ever Ruby syntax is simply lovely. Performance is sluggish. To get at system functions requires ultimately going through a C interface, which means either there's an existing Ruby library you can use, or you get to do the ugly part

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread j o a r
On May 19, 2008, at 10:33 AM, Peter Duniho wrote: In any case, it takes a pretty blind eye to claim that the volume of complaints is in no way related to problems. I would expect that the volume of complaints is pretty much directly related to the over 100.000 downloads of the iPhone SDK

  1   2   >