Background Application.

2008-05-19 Thread ninad walvekar
hi, I have an existing GUI application and now i want to run that same application in the background at startup and then when the user wants to run the application run it as a normal GUI application.The application has been built in Cocoa.Can anyone help me on this? Regards, Ninad __

load a Resource file template and search/replace a file

2008-05-19 Thread Wayne Shao
Hi, I would like to use some template (an XML file with some variables to be replaced) in my Resources. At run time, I would like to load it and replace the variables to produce a tmp file. Newbie questions: Are there any good examples on how I should do the following? - load the template from

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jean-Daniel Dupas
It's an inline fonction, so code compiled using this function will properly work on pre 10.5 versions of the OS. Le 19 mai 08 à 08:34, Graham Cox a écrit : Yes, it's not available pre 10.5 G. On 19 May 2008, at 4:31 pm, Andrew Merenbach wrote: Is there any reason to use the cast on cbbo

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread ben syverson
On May 19, 2008, at 12:03 AM, Peter Duniho wrote: From: ben syverson <[EMAIL PROTECTED]> This is going to sound bitchy, but it's hard for me to have any sympathy for vague complaints about the docs or the usability of Cocoa. That does sound bitchy. I mean, it's fair enough to say that peopl

Re: Background Application.

2008-05-19 Thread Hamish Allan
On Mon, May 19, 2008 at 8:21 AM, ninad walvekar <[EMAIL PROTECTED]> wrote: > I have an existing GUI application and now i want to run that same > application in the background at startup and then when the user wants to run > the application run it as a normal GUI application.The application has be

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Graham Cox
Ah, OK, I'd missed that. But it raises another question I've been vaguely meaning to ask the list, but which is pretty minor, so I haven't so far bothered: If I declare a C function as static inline inside a .m file (just to be clear, it's C function, not an Obj-C method) does it get inline

Re: Background Application.

2008-05-19 Thread Brett Powley
You actually can have a GUI application in the background, by setting the following key in your Info.plist: LSUIElement 1 Your application then doesn't get a menu bar and doesn't appear in the Dock. Depending on what you want your app to do, this might be what you want. T

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jean-Daniel Dupas
I would be really surpise if it is not. (and the "Show assembly" Xcode command tell me that I'm right). I think their is no garantee that the function will be inlined, as the "inline" keyword is just a compiler's hint, but the NS_INLINE macros is defined like this: static __inline__ __attri

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jean-Daniel Dupas
That'd be great for the Mac, but not so great for the Cocoa evangelists. It's hard to understand the neglect Java has seen on the Mac, except as a way to try to steer more people towards Cocoa. Cocoa is a framework, Java a language. Apple provided a Cocoa/Java bridge to let developper

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
On May 19, 2008, at 1:19 AM, ben syverson wrote: On May 19, 2008, at 12:03 AM, Peter Duniho wrote: From: ben syverson <[EMAIL PROTECTED]> This is going to sound bitchy, but it's hard for me to have any sympathy for vague complaints about the docs or the usability of Cocoa. That does sound b

[OT] generating API docs

2008-05-19 Thread Torsten Curdt
Guys ...how are you generating API docs for your projects? Is there a tool like javadoc? I found headerdoc - but that is not quite the same. cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Bindings: Allows Editing Multiple Values Selection

2008-05-19 Thread Gerriet M. Denkmann
I have (in Tiger 10.4.11) a nib with an NSTextField. It's value is bound to "myInt" in MyObjectController (an NSObjectController) - Controller Key: selection. The content outlet of MyObjectController is connected to the File's Owner, which is of class MyOwner. MyOwer has an instance variabel

html question

2008-05-19 Thread vinitha
Hi, I want to convert string to its corresponding values.I found a method in NSAttributedString initWithHtml,i think it will convert HTML to attributed string.I found 3 attributes NSString *NSExcludedElementsDocumentAttribute; NSString *NSTextEncodingNameDocumentAttribute; NSString *NSPrefixSpace

Re: html question

2008-05-19 Thread Jonathan del Strother
On Mon, May 19, 2008 at 11:27 AM, <[EMAIL PROTECTED]> wrote: > Hi, > I want to convert string to its corresponding values.I found a method in > NSAttributedString initWithHtml,i think it will convert HTML to > attributed string.I found 3 attributes > NSString *NSExcludedElementsDocumentAttribute

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
Date: Mon, 19 May 2008 02:35:12 -0400 From: Erik Buck <[EMAIL PROTECTED]> [...] It comes up once in a blue moon, but not with the reliability I've seen here, nor is there nearly the kind of practiced, organized defense seen here (which again suggests a certain regularity to the complaints). Tha

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Julius Guzy
On 19 May 2008, at 5:21, : Nathan Kinsinger <[EMAIL PROTECTED]> wrote Subject: Re: Cocoa et al as HCI usability problem I don't have a CS degree and would qualify, as one poster deridingly called early mac programmers, as a hobbyist. I have approached learning cocoa seriously and actually stu

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
On May 19, 2008, at 3:26 AM, Jean-Daniel Dupas wrote: That'd be great for the Mac, but not so great for the Cocoa evangelists. It's hard to understand the neglect Java has seen on the Mac, except as a way to try to steer more people towards Cocoa. Cocoa is a framework, Java a language. App

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread I. Savant
Actually, I don't understand why an RTFM kind of answer is perceived as rude. I'm really happy when I get an RTFM *with a link* to the appropriate document. Also, I often just don't answer at all, since an RTFM may not be well received and I don't have the time to write a more elaborate

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Torsten Curdt
That'd be great for the Mac, but not so great for the Cocoa evangelists. It's hard to understand the neglect Java has seen on the Mac, except as a way to try to steer more people towards Cocoa. Cocoa is a framework, Java a language. The comparison is not as wrong as you say. Java is essent

Re: load a Resource file template and search/replace a file

2008-05-19 Thread Kyle Sluder
On Mon, May 19, 2008 at 3:28 AM, Wayne Shao <[EMAIL PROTECTED]> wrote: > Newbie questions: Are there any good examples on how I should do the > following? > > - load the template from resource file Read the documentation on NSBundle. > - search and replace the file to produce another file. Rea

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Michael Ash
On Mon, May 19, 2008 at 6:10 PM, Peter Duniho <[EMAIL PROTECTED]> wrote: > It should be clear from the volume of push-back that > not all is well in Cocoa-Land, even if the complaints are sometimes vague. This is absurd. Every programming system I have ever encountered that rises above the level

How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread parag vibhute
Hi all, I am using NSURLDownload class to download a file through https. But I get error "bad server certificate". I know this error occurs when HTTPS server has bad certificate. I want to allow this download even though certificate is bad. So can anybody tell how can I handle this? I searched go

Programmatically get treecontroller selection

2008-05-19 Thread Steven Hamilton
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 data munging on the way from core data to the tableview

A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-19 Thread Julius Guzy
Well I never thought I would cause this much discussion. I have tried but do not have the time needed to reply to all. I might still but work must take precedence. There have been a number of people who suggested I give specific instances of documentation failure. I agree it would be useful bu

Re: Cocoa bindings and reluctance to use NSPopupButon

2008-05-19 Thread Stuart Rogers
David <[EMAIL PROTECTED]> wrote: So, I'm realizing that maybe its more reasonable to back down to just using a data source, target/action and delegates. Don't think of it as backing down; think of it as using a more appropriate technology. (For some appropriate definition of 'appropriate' of

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jason Stephenson
Regarding the arrangement of the docs: I find it much easier to read the guides, and oftentimes also the reference documentation, from a web browser rather than in Xcode's documentation window. If I'm using Xcode, I will usually have the doc window open. However, I'll very often have the guide

Re: [OT] generating API docs

2008-05-19 Thread Uli Kusterer
Am 19.05.2008 um 12:46 schrieb Torsten Curdt: Guys ...how are you generating API docs for your projects? Is there a tool like javadoc? I found headerdoc - but that is not quite the same. There's also Doxygen which I've used on a few projects. It's been a while, though, so I'm not sure wh

Re: [OT] generating API docs

2008-05-19 Thread Torsten Curdt
On May 19, 2008, at 14:57, Uli Kusterer wrote: Am 19.05.2008 um 12:46 schrieb Torsten Curdt: Guys ...how are you generating API docs for your projects? Is there a tool like javadoc? I found headerdoc - but that is not quite the same. There's also Doxygen which I've used on a few projects. I

Re: [OT] generating API docs

2008-05-19 Thread Jason Stephenson
I was going to suggest Doxygen, also, but Uli beat me to it. I will add this link, which explains how to create docsets with Doxygen: http://developer.apple.com/tools/creatingdocsetswithdoxygen.html Cheers, Jason ___ Cocoa-dev mailing list (Cocoa-dev

RE: Guidance for Cocoa's steep learning curve

2008-05-19 Thread john darnell
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ash Sent: Saturday, May 17, 2008 1:56 AM To: Cocoa Developers Subject: Re: Guidance for Cocoa's steep learning curve On Fri, May 16, 2008 at 10:57 PM, john darnell <[EMAIL PROTECTED]> wrote: > And,

Re: Accessing variables across classes

2008-05-19 Thread Florent Pillet
Brett Powley wrote: MyAppDelgate *ad = [NSApp delegate]; then do something with [ad myMutableArray] Incorrect. You don't get accessors for instance variables automatically like that. Well yes, but I assumed that his problem was that he didn't know how to get at the application delegate from

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jeff LaMarche
Boy, I've been really refraining myself from jumping into the fray here. It's an interesting discussion which has been handled respectfully, but it seems to me that we've reached the point of diminishing returns on this. I think the lines have been drawn, and most people have chosen one sid

Is [Red] the only special color for NSNumberFormatter?

2008-05-19 Thread matt . gough
According to http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSNumberFormatter_Class/Reference/Reference.html : An even simpler way to cause negative values to be displayed in red is to include the constant [Red] in your format string, as shown in this examp

Cocoa bindings and reluctance to use NSPopupButon

2008-05-19 Thread Johnny Lundy
On May 18, 2008, at 9:56 PM, [EMAIL PROTECTED] wrote: Message: 2 Date: Sun, 18 May 2008 20:03:48 -0400 From: Erik Buck <[EMAIL PROTECTED]> Subject: Cocoa bindings and reluctance to use NSPopupButon To: cocoa-dev@lists.apple.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; cha

Re: Background Application.

2008-05-19 Thread Hamish Allan
On Mon, May 19, 2008 at 10:31 AM, Brett Powley <[EMAIL PROTECTED]> wrote: > You actually can have a GUI application in the background True, but the OP said "at startup" (i.e. daemon not agent), and also wants to run the *same* application "as a normal GUI application" (i.e. in the foreground and

Re: load a Resource file template and search/replace a file

2008-05-19 Thread Jens Alfke
On 19 May '08, at 4:49 AM, Kyle Sluder wrote: - load the template from resource file Read the documentation on NSBundle. Specifically, the -pathToResource... family of methods will give you absolute paths to files in your Resources directory. (NSBundle doesn't load the files for you, th

Re: Learning Curve/Documentation Challenge/Recommendation

2008-05-19 Thread colo
I guess I am just reeealy careful and curious in the end. Anyway to all I am like 1/3 into my book now and this round after the amass of ruby I have used, Obj 2.0 is much easier to "get" now. But my argument stands that I prefer ruby syntax more now than ever :P What else then The key value co

Re: How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread Jens Alfke
On 19 May '08, at 5:07 AM, parag vibhute wrote: I am using NSURLDownload class to download a file through https. But I get error "bad server certificate". I know this error occurs when HTTPS server has bad certificate. I want to allow this download even though certificate is bad. Why? T

Re: [OT] generating API docs

2008-05-19 Thread Jens Alfke
On 19 May '08, at 6:07 AM, Torsten Curdt wrote: Yeah ...I used that before with C++ ...didn't know it also does Objective-C. I'll have a look. But I am not a big fan of the output either. Doxygen is the best I've found. It supports Obj-C 2 properties. Apple has a tool called headerdoc, bu

Re: How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread ainxow
On May 19, 2008, at 8:35 AM, "parag vibhute" <[EMAIL PROTECTED]> wrote: I am using NSURLDownload class to download a file through https. But I get error "bad server certificate". I know this error occurs when HTTPS server has bad certificate. I want to allow this download even though ce

Re: Cocoa bindings and reluctance to use NSPopupButon

2008-05-19 Thread I. Savant
> I am not under any delusion that they are magic. It may appear that way to > some because the only way to get them to work is to randomly choose one > selection after another in the popups in the Bindings pane until you find > one combination that 1) Doesn't cause the app to just bounce in the Do

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Lincoln Green
I like Cocoa. Like any language it has a learning curve, but I enjoy traipsing around in Cocoa-Land, and it's not that hard to learn if you put some work into it. If you have a problem, you can ask it here; that's what this mailing-list is for. If Apple thought their documentation was perfe

Re: Cocoa bindings and reluctance to use NSPopupButon

2008-05-19 Thread I. Savant
Sorry, I did not completely explain this scenario: > Now let's consider some pretty "Delicious Generation" approach to > selecting the spouse of the currently-selected Person in your master > list. Say a pretty interface pops up where on the left you have a > table view filled with your people.

Re: How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread parag vibhute
Thanks for url. I implemented same but whenever I launched my application it asks to change trust settings. Why is it like that? Other thing is my https server requires username & password so now I am using WebDownload class (which is subclass of NSURLDownload) but it does ask about username & pa

Re: How to handle bad certificate error in NSURLDownload?

2008-05-19 Thread parag vibhute
Sorry please read last statement as "but it does not ask." Thanks, Palav On Mon, May 19, 2008 at 8:49 PM, parag vibhute <[EMAIL PROTECTED]> wrote: > Thanks for url. > > I implemented same but whenever I launched my application it asks to change > trust settings. Why is it like that? > > Othe

Re: whether to use NSSavePanel or something else

2008-05-19 Thread Nate Weaver
If you just want to let them choose a folder, use NSOpenPanel (calling -setCanChooseFiles:NO and -setCanChooseDirectories:YES on the save panel before displaying it). On May 19, 2008, at 11:04 AM, Nick Rogers wrote: Hi, I have to let the user browse thru the filesystem and choose a direct

Re: Is [Red] the only special color for NSNumberFormatter?

2008-05-19 Thread Fritz Anderson
On 19 May 2008, at 8:57 AM, [EMAIL PROTECTED] wrote: According tohttp://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSNumberFormatter_Class/Reference/Reference.html : An even simpler way to cause negative values to be displayed in red is to include the constant

Delegates

2008-05-19 Thread john darnell
Hello Everyone: I've been trying to get my head wrapped around the concept of "delegates" and I thought I would run it by the list to see if I am approaching the correct idea behind a delegate. As far as I can tell, it is kind of like a virtual function (virtual because I, the programmer, a

whether to use NSSavePanel or something else

2008-05-19 Thread Nick Rogers
Hi, I have to let the user browse thru the filesystem and choose a directory for saving some data. So is NSSavePanel right for the job or there is something else too. cause from what I gather NSSavePanel requires to type in a fileName and then returns the path to that file. Where as I don't

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Alex Kac
I have followed this discussion closely because as a veteran developer who started on Mac OS back in the nineties and then gone to Win32 and a bit with PHP, Tango, .NET (both web and mobile/desktop), Cocoa has been very difficult to *get into*. Every technology I've been able to get into ea

Re: load a Resource file template and search/replace a file

2008-05-19 Thread Nathan Kinsinger
On May 19, 2008, at 8:31 AM, Jens Alfke wrote: On 19 May '08, at 4:49 AM, Kyle Sluder wrote: - load the template from resource file Read the documentation on NSBundle. Specifically, the -pathToResource... family of methods will give you absolute paths to files in your Resources directo

Re: load a Resource file template and search/replace a file

2008-05-19 Thread Wayne Shao
Thanks all for the responses! Wayne On Mon, May 19, 2008 at 9:47 AM, Nathan Kinsinger <[EMAIL PROTECTED]> wrote: > > On May 19, 2008, at 8:31 AM, Jens Alfke wrote: > > >> On 19 May '08, at 4:49 AM, Kyle Sluder wrote: >> >> - load the template from resource file >>> >>> Read the documentatio

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Alex Kac
I don't think you're understanding what he's saying or at least taking it to the wrong extreme. I'm reading his comment that the docs talk about how great their API is, not explaining the concepts. In my last post I said the docs can be too verbose. I *want* the docs to explain why to me, b

Re: Delegates

2008-05-19 Thread Nate Weaver
A delegate is simply another object that is asked for more information or asked to do something (often optional) on behalf of the sender or in response to something the sender does (e.g., a window resize, or a table asking whether its selection can change). So, if I'm correctly reading what

Re: Delegates

2008-05-19 Thread Michael Vannorsdel
Delegates act like observers. They register with another object saying "hey, if you do something important I want to know about it and have a chance to act on it too". Each class that allows delegates have a list of delegate methods. These are the methods the class is willing to notify t

Re: Delegates

2008-05-19 Thread I. Savant
> I've been trying to get my head wrapped around the concept of > "delegates" and I thought I would run it by the list to see if I am > approaching the correct idea behind a delegate. Is there something about your question this document doesn't address? http://developer.apple.com/documentatio

Re: Delegates

2008-05-19 Thread Michael Babin
On May 19, 2008, at 11:22 AM, john darnell wrote: I've been trying to get my head wrapped around the concept of "delegates" and I thought I would run it by the list to see if I am approaching the correct idea behind a delegate. As far as I can tell, it is kind of like a virtual function (vi

Re: Delegates

2008-05-19 Thread I. Savant
On Mon, May 19, 2008 at 12:52 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > Delegates act like observers. They register with another object saying > "hey, if you do something important I want to know about it and have a > chance to act on it too". Well, no, not really. This is significant

Re: CATransactions not working

2008-05-19 Thread Adam Radestock
It's in a function called from within the mouseDown: handler in my subclass. I just don't get why the implicit animation isn't working? On 18 May 2008, at 20:22, Brian Christensen wrote: On May 18, 2008, at 12:00 , Adam Radestock wrote: Hi everyone, I've been struggling to work out how to

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jeff LaMarche
On May 19, 2008, at 12:42 PM, Alex Kac wrote: Every technology I've been able to get into easily because I could discover the tech in my own time. Cocoa is not like that. You have to grok the whole foundation first before you can do anything. I don't agree with this. You have to grok it al

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Gérard Iglesias
Hi, Sincerely, I am coding under windows with Win32/Qt/Corba/Lua and others for a living, I use MSDN every day, I read their example very often. Well Qt has a very usable API and a good documentation and good examples and we have access to the sources... But on the Win32/Microsoft front, I don

Re: CATransactions not working

2008-05-19 Thread Brian Christensen
On May 19, 2008, at 1:06 , Adam Radestock wrote: It's in a function called from within the mouseDown: handler in my subclass. I just don't get why the implicit animation isn't working? A couple of things: 1) Make sure that somewhere up the hierarchy of your button's superviews one of them

Re: Delegates

2008-05-19 Thread Nate Weaver
Delegates *are* often automatically registered for their delegated object's notifications, however. The differences between these and "regular" delegate methods should be apparent in the documentation, though, since the former will take a single argument of NSNotification *. (To help the

Re: Delegates

2008-05-19 Thread Paul Sargent
On 19 May 2008, at 17:22, 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 in the right ball park. The bit you're missing is that with vir

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
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 attracts programmers who aren't using it just because it's hard. The platform attracts progr

Re: Delegates

2008-05-19 Thread Paul Sargent
On 19 May 2008, at 18:01, I. Savant wrote: On Mon, May 19, 2008 at 12:52 PM, Michael Vannorsdel <[EMAIL PROTECTED] > wrote: Delegates act like observers. Well, no, not really. I think that was 'observers', not 'Observers'. (i.e. not in the Cocoa/KVO sense) Sometimes wonder if we're going

Re: Delegates

2008-05-19 Thread Michael Vannorsdel
Indeed. I was just trying to keep it in simple terms as not to overwhelm the OP with heavy details. I just wanted the concept to make some sense in better known terms at the risk of oversimplifying. On May 19, 2008, at 11:01 AM, I. Savant wrote: Well, no, not really. This is significantl

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jeff LaMarche
On May 19, 2008, at 1:33 PM, Peter Duniho wrote: NSColor color { set { undoManager.prepareWithInvocationTarget(this).color = mColor; mColor = value; } } Are you sure about this? I'm just a little surprised to see that C#

Re: Delegates

2008-05-19 Thread I. Savant
> I think that was 'observers', not 'Observers'. > (i.e. not in the Cocoa/KVO sense) > > Sometimes wonder if we're going to run out of words to describe things > because everything is overloaded with some technical meaning. > Still ... my point is the same. I think this is a semantics argument w

Re: Delegates

2008-05-19 Thread I. Savant
On Mon, May 19, 2008 at 1:37 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > Indeed. I was just trying to keep it in simple terms as not to overwhelm > the OP with heavy details. I just wanted the concept to make some sense in > better known terms at the risk of oversimplifying. I figured

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
Date: Mon, 19 May 2008 09:32:01 -0400 From: Jeff LaMarche <[EMAIL PROTECTED]> Subject: Re: Cocoa et al as HCI usability problem [...] In many ways, Cocoa/Obj-C is an oddity, and certainly the approaches that Microsoft, Sun, and Apple have taken with their development tools is different. Micros

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Greg Titus
Peter Duniho wrote: In C#: void setColor(NSColor color) { undoManager.prepareWithInvocationTarget(this).setColor(mColor); mColor = color; } Your point being? If you think your example is useful in presenting your claim, you'll need to be a lot more specific. [...] W

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Jonathan Hendry
On May 19, 2008, at 1:33 PM, Peter Duniho wrote:] Your point being? If you think your example is useful in presenting your claim, you'll need to be a lot more specific. undoManager.prepareWithInvocationTarget(this).setColor(mColor); I could be wrong, but in C#, wouldn't this UndoManager ne

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Peter Duniho
Date: Mon, 19 May 2008 11:42:39 -0500 From: Alex Kac <[EMAIL PROTECTED]> Subject: Re: Cocoa et al as HCI usability problem [...] I agree with much of what Peter wrote in his post, though not his conclusion that Cocoa can't be fun. I hesitate to even mention this, as I've written tons already an

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread David Wilson
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# and Java. It's the exact opposite of "similar". You'

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

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

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

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

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

  1   2   >