Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Graham Cox
On 22 May 2008, at 3:53 pm, Johnny Lundy wrote: Oh, I have no problem invoking API methods that are built-in to Cocoa. It's dealing with two of my own classes that I never understood. OK, well alright, here's the secret: there is no difference! I was referring to something like the followi

Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Jens Alfke
On 21 May '08, at 9:42 PM, Johnny Lundy wrote: I still don't know how to call one class from another (the reason I always only have one class in my projects) Yow! That's kind of a fundamental issue. Sort of like "I still don't know how knights move, so I just leave them where they started.

Re: creating a resource fork and writing raw bytes to it

2008-05-21 Thread Charles Srstka
On May 22, 2008, at 1:40 AM, Jens Alfke wrote: On 21 May '08, at 10:50 PM, Charles Srstka wrote: What becomes the purpose of the Carbon File Manager, anyway? Cocoa's already got a file manager. And yet even after seven years, with all the new APIs, new language features, and new paradigms

Re: Moving SplitView Divider Position

2008-05-21 Thread Jens Alfke
On 21 May '08, at 10:45 PM, Apparao Mulpuri wrote: Is there any provision to change the NSSplitView divider position programmatically(with out using mouse). Yes, in 10.5: - (void)setPosition:(CGFloat)position ofDividerAtIndex: (NSInteger)dividerIndex; You can do it in 10.4, but you have t

Re: creating a resource fork and writing raw bytes to it

2008-05-21 Thread Jens Alfke
On 21 May '08, at 10:50 PM, Charles Srstka wrote: What becomes the purpose of the Carbon File Manager, anyway? Cocoa's already got a file manager. And yet even after seven years, with all the new APIs, new language features, and new paradigms that have been added to Cocoa, its file manager

Re: ObjC Question - labeled arguments

2008-05-21 Thread Jens Alfke
On 21 May '08, at 10:51 PM, Roland King wrote: What I don't understand is why adding labels to the 3 unlabelled arguments also works as the OP said does, his example was this [horizontalRuler reset:style *newSide*:2 *textLoc*:1 *newScale*: 1.0]; surely the selector of the original is "r

ObjC Question - labeled arguments

2008-05-21 Thread Johnny Lundy
You're correct - there is no first argument per se: it is part of the method selector, together they are called a "keyword." http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_3.html A message with a single argument affixes a colon to the

Re: ObjC Question - labeled arguments

2008-05-21 Thread Peter Zegelin
OK - thanks everyone I think I understand now. Funnily enough a while after I posted I was thinking that that is why many methods are labeled 'doSomethingWith...' and I should rename the method to something like Graham suggested (resetRulerStyleWithNewStyle:newSize:newScale:textLocation)

Re: ObjC Question - labeled arguments

2008-05-21 Thread Roland King
well I'm confused now because the original post had this as the method (I've split it up at each colon) - (void)reset:(RulerStyle*)newStyle :(int)newSide :(int)textLoc :(double)newScale; which is a method reset taking a (RulerStyle*) argument and 3 unlabelled arguments. so I'd expect the c

Re: creating a resource fork and writing raw bytes to it

2008-05-21 Thread Charles Srstka
On May 22, 2008, at 12:09 AM, Mike Fischer wrote: As I understand it only the GUI portions of Carbon are going out of style. The lower level stuff like the File Manager seems to be sticking around. (Well not the old FSSpec stuff but the modern FSRef APIs.) Actually it seems like some things

Re: ObjC Question - labeled arguments

2008-05-21 Thread Bill Bumgarner
On May 21, 2008, at 10:38 PM, Andrew Farmer wrote: Interesting - I wasn't aware that unlabeled arguments existed (primarily because they're not used in Cocoa). I'd stay away from them, as they're strictly less clear than named arguments, and will probably confuse other programmers just as th

Re: Safari-like padlock button in window title bar

2008-05-21 Thread Jerry Krinock
On 2008 May, 20, at 17:08, Gary L. Wade wrote: I'm planning on doing something like this myself with one of my projects, and the way I plan on trying it out is by using: -(NSButton *)standardWindowButton:(NSWindowButton)b; for each NSWindowButton of the NSWindow, find a reasonable visual

Moving SplitView Divider Position

2008-05-21 Thread Apparao Mulpuri
Hi, Is there any provision to change the NSSplitView divider position programmatically(with out using mouse). I have two splitViews with two subviews each. While dragging on one divider in one splitView, i have to move the divider in second splitview. Both splitviews dividers are in sync, while d

Re: ObjC Question - labeled arguments

2008-05-21 Thread Graham Cox
On 22 May 2008, at 2:48 pm, Peter Zegelin wrote: New(ish) here. After all the talk about the best way to learn Cocoa I thought I'd better brush up on my obj-c. I've been able to get an amazing distance without really understanding a lot as I am mainly using Cocoa as a gui around some C++

Re: ObjC Question - labeled arguments

2008-05-21 Thread Jens Alfke
On 21 May '08, at 10:34 PM, Peter Zegelin wrote: I'm thinking the method name is setWidth with two arguments, one unlabeled and the other labeled with 'height'. Nope. The method name (also called the "selector") is all of the keywords concatenated together. So in your example the method na

Re: ObjC Question - labeled arguments

2008-05-21 Thread Bill Bumgarner
On May 21, 2008, at 10:25 PM, Peter Zegelin wrote: Well that example is straight out of the manual: "Methods can also take arguments. The imaginary message below tells myRect to set its location within the window to coordinates (30.0, 50.0): [myRect setOrigin:30.0 :50.0]; Here the method name

Re: create a directory (UTF8 string) in cocoa

2008-05-21 Thread Wayne Shao
Thanks all for the responses! On Wed, May 21, 2008 at 6:14 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > On Thu, May 22, 2008 at 8:12 AM, Wayne Shao <[EMAIL PROTECTED]> wrote: > > I could only fine mkdir() in C. Is there anything in Cocoa? I don't > think > > mkdir() can handle NSString. I need

Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Adam Leonard
Hi, Ok, so your approach works, but as you already see, it has problems. You are totally right that it is best to keep your models uninvolved of the GUI, and therefore you should not be creating instances of them in IB. First, I would read through the MVC (model view controller) documenta

Re: ObjC Question - labeled arguments

2008-05-21 Thread Andrew Farmer
On 21 May 08, at 22:25, Peter Zegelin wrote: - (void)reset:(RulerStyle*)newStyle:(int)newSide:(int)textLoc: (double)newScale; That syntax is pretty obscure. Try reading it as - (void)reset:(RulerStyle*)style newStyle:(int)newStyle newSide:(int)newSide textLoc:(double)newScale; and

Re: ObjC Question - labeled arguments

2008-05-21 Thread Michael Ash
On Thu, May 22, 2008 at 1:34 PM, Peter Zegelin <[EMAIL PROTECTED]> wrote: > > On 22/05/2008, at 3:15 PM, mmalc crawford wrote: > >> >> On May 21, 2008, at 9:48 PM, Peter Zegelin wrote: >> >>> So my question is - is there a way to include the first label? I note >>> that the examples in the Objectiv

Re: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]

2008-05-21 Thread Jens Alfke
On 21 May '08, at 9:22 PM, Lynn Barton wrote: I am getting the date OK, but not the type code, which should be “TEXT” for text files and might be “WBBN” for a Microsoft Word document. Most files don't have HFS type or creator codes anymore, because Cocoa apps don't usually set them. (Wor

Re: ObjC Question - labeled arguments

2008-05-21 Thread Peter Zegelin
On 22/05/2008, at 3:15 PM, mmalc crawford wrote: On May 21, 2008, at 9:48 PM, Peter Zegelin wrote: So my question is - is there a way to include the first label? I note that the examples in the ObjectiveC manual seem to leave the first one out also: [myRect setWidth:10.0 :15.0]; ---> [my

Re: ObjC Question - labeled arguments

2008-05-21 Thread Peter Zegelin
On 22/05/2008, at 3:09 PM, Andrew Farmer wrote: On 21 May 08, at 21:48, Peter Zegelin wrote: After all the talk about the best way to learn Cocoa I thought I'd better brush up on my obj-c. I've been able to get an amazing distance without really understanding a lot as I am mainly using Co

Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Graham Cox
On 22 May 2008, at 2:42 pm, Johnny Lundy wrote: I still don't know how to call one class from another (the reason I always only have one class in my projects) You just need a reference to the other class. That might be something you've created, or obtained from somewhere else. Example.

Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Jens Alfke
On 21 May '08, at 8:15 PM, Matthew Youney wrote: I just have no mechanism of sending messages to my "controller" class from my "model" objects unless the "controller" makes the call. Typically the model doesn't "know about" the controller (or the view). Instead it posts notifications whe

Re: ObjC Question - labeled arguments

2008-05-21 Thread mmalc crawford
On May 21, 2008, at 9:48 PM, Peter Zegelin wrote: So my question is - is there a way to include the first label? I note that the examples in the ObjectiveC manual seem to leave the first one out also: [myRect setWidth:10.0 :15.0]; ---> [myRect setWidth:10.0 height: 15.0]; No, it doesn't

Re: creating a resource fork and writing raw bytes to it

2008-05-21 Thread Mike Fischer
Am 22.05.2008 um 06:11 schrieb Charles Srstka: On May 21, 2008, at 11:11 AM, Mike Fischer wrote: There are hacks that rely on special pathnames to access the resource fork of a file. (Something like /path/to/file/..namedfork/ rsrc) But I would not recommend using them as there is no guaran

Re: ObjC Question - labeled arguments

2008-05-21 Thread Andrew Farmer
On 21 May 08, at 21:48, Peter Zegelin wrote: After all the talk about the best way to learn Cocoa I thought I'd better brush up on my obj-c. I've been able to get an amazing distance without really understanding a lot as I am mainly using Cocoa as a gui around some C++ code and have been abl

Re: Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]

2008-05-21 Thread Quincey Morris
On May 21, 2008, at 21:22, Lynn Barton wrote: hfsFileType = [fileAttr valueForKey:NSFileHFSTypeCode]; modDate = [fileAttr valueForKey:NSFileModificationDate]; Don't you mean: hfsFileType = [fileAttr objectForKey:NSFileHFSTypeCode]; modDate = [fileAttr objectForKey:NSFileModificat

ObjC Question - labeled arguments

2008-05-21 Thread Peter Zegelin
New(ish) here. After all the talk about the best way to learn Cocoa I thought I'd better brush up on my obj-c. I've been able to get an amazing distance without really understanding a lot as I am mainly using Cocoa as a gui around some C++ code and have been able to get a long way just by

fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Johnny Lundy
These are the exact same 2 questions that I had bugging me a while back. It's amazing. I still don't know how to call one class from another (the reason I always only have one class in my projects), but I was told that to solve the "instance has no name" issue you have to make an IBOutlet

Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Hal Mueller
Make sure you understand nil-targeted actions/File's Owner/responder chain. That idiom might or might not be useful in this case. I can picture sending various messages to nil that only the POSSocket class will respond to, and have the POSSocket instance be the delegate of your controller.

Can't get file type code using [fileAttr valueForKey:NSFileHFSTypeCode]

2008-05-21 Thread Lynn Barton
I am trying to build a list of files found on my hard disk that pass a certain filter (predicate). Mostly my code works, but I want to get the modification date and the type code of each file. I am getting the date OK, but not the type code, which should be ³TEXT² for text files and might be ³WBBN²

Re: Guidance for Cocoa's steep learning curve

2008-05-21 Thread David Casseres
Yes. For detailed guidance, buy Aaron Hillegass's book Cocoa Programming for Mac OS X, and go through it from beginning to end, doing every exercise and every challenge. I have done that with the first two editions and am about to do it with the third, and I promise you it's a good way t

Re: creating a resource fork and writing raw bytes to it

2008-05-21 Thread Charles Srstka
On May 21, 2008, at 11:11 AM, Mike Fischer wrote: There are hacks that rely on special pathnames to access the resource fork of a file. (Something like /path/to/file/..namedfork/ rsrc) But I would not recommend using them as there is no guarantee that they will continue to work in the future

Re: Guidance for Cocoa's steep learning curve

2008-05-21 Thread David Casseres
That's the best roadmap I've ever seen. On May 14, 2008, at 6:19 PM, Erik Buck wrote: The obstacles, misconceptions, and prerequisite concepts that need to be mastered when learning Cocoa vary dramatically based on the past experience of the learner. I am a very experienced Cocoa progr

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

2008-05-21 Thread David Casseres
That's a really good idea, your wiki-that's-more-than-a-wiki. You're in charge! 8^{) On May 19, 2008, at 5:31 AM, Julius Guzy wrote: 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 precede

Re: connections and the nib lifecycle

2008-05-21 Thread Chris Hanson
On May 21, 2008, at 11:00 AM, Vijay Malhan wrote: But the problem is still open for discussion. Is there any differences in sequence of events occurring while loading of Nib between Tiger and Leopard platforms? There really should not be, at least not like this. As I explained in my resp

RE: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Matthew Youney
Jens, Shawn, Thanks. I have my application working, however not exactly as I would like. What I did was, in IB, created a NSObject, and set it to my POSsocket class. I understand now that IB "automatically" instantiates this classes that you put in there. I added the required outlets, and I can

Re: connections and the nib lifecycle

2008-05-21 Thread Chris Hanson
On May 21, 2008, at 9:05 AM, Torsten Curdt wrote: I have a class that extends NSWindowController. - (void) test:(NSString*)string { [textField setStringValue:string]; NSLog(@"textField=%@", textField); int ret = [NSApp runModalForWindow:[self window]]; NSLog(@"textField=%@", t

Re: Trying to understand -- please help...

2008-05-21 Thread Michael Vannorsdel
Would be like a cookbook including instructions on how to operate an oven and use a knife to cut vegetables in every single recipe. I think most would find that pretty redundant and diluting, especially when the preface covers these topics in detail. On May 21, 2008, at 8:37 PM, Jens Alfk

Re: Trying to understand -- please help...

2008-05-21 Thread Jens Alfke
On 21 May '08, at 11:35 AM, Johnny Lundy wrote: See? Not a word about autoreleasing anything, or having to retain the returned array. Nada. It also didn't spell out that: the return value is a pointer, pointers are 4 or 8 bytes large, the pointer value zero is special and is named "nil", mes

Re: Trying to understand -- please help...

2008-05-21 Thread Jens Alfke
On 21 May '08, at 12:14 PM, Vijay Malhan wrote: If I'm not wrong "self" equivalent of "this" which points to an instance var. And it is initialized in - init (instance)method. And if it fails to initialize, it's nil. So does "self" even exist when + initialize is called. This is a class

Re: Method -fax: in IB's First Responder?

2008-05-21 Thread Erik Buck
Apple removed fax support in Mac OS X 10.0 and then restored it in OS X 10.3. http://developer.apple.com/technotes/tn2002/tn2082.html ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Trying to understand -- please help...

2008-05-21 Thread Jens Alfke
On 21 May '08, at 12:37 PM, Johnny Lundy wrote: I submit that any experienced programmer looking up and turning to a page entitled "NSArray Class Reference" would "expect" that a behavior of the class that results in one's created object being deallocated out from under him would be docume

Documenting and editing nib files was Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Erik Buck
[deleted] But there is no clear specific conceptual reason (that I know of) why a list of these connections could not be made more user-editable. What's more, this makes documenting simple code examples much harder, as the drags all need to be documented in a necessarily less-rigourous way (and p

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Graham Cox
I should clarify my reason for that statement, since it has been somewhat misconstrued. I think we can all see that the software situation on Windows (let's name names) is undesirable from the point of view of the average user. It may be desirable from certain other perspectives but that's

Re: How to schedule an autonomous (SMTP/FAX) service.

2008-05-21 Thread Jens Alfke
On 21 May '08, at 7:20 AM, [EMAIL PROTECTED] wrote: What is the preferred way to programmatically schedule a SEND/FAX event, (preferably via Cocoa)? I could supply the necessary parameters & data, perhaps stored in User Defaults or a flat file. Use launchd. (I think cron still exists,

Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Jens Alfke
On 21 May '08, at 5:07 PM, Matthew Youney wrote: The name of the controller object in interface builder is myPOSsocketController, and the following gives the compiler error "myPOSsocketController undeclared or first use in function" If you want an object in a nib to know about another one, th

Re: RDBMS suggestions for CoreData

2008-05-21 Thread David Wilson
(Whoops, accidentally replied only to Jens at first! Sorry about that.) >From http://developer.apple.com/macosx/coredata.html Core Data builds on some of the concepts of enterprise-class database application frameworks, such as the Enterprise Objects Framework in WebObjects. However, make no mist

Re: Limiting NSWorkspace launchApplication to a specific version

2008-05-21 Thread Jens Alfke
On 21 May '08, at 5:13 AM, Ray Ruvinskiy wrote: Is there a way to tell NSWorkspace only to launch a specific version of an application (matched against CFBundleVersion in Info.plist)? No, but it might be possible using LaunchServices. (Probably you'd need to find all the instances of the a

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Andy Lee
On May 21, 2008, at 8:01 PM, Jeff LaMarche wrote: Hamish was making a general statement (and stating his opinion) about what he saw as the likely outcome of lowering the barriers to entry. Jeff, given the many good points you've made that made perfect sense to me, the phrase "lowering the

Re: RDBMS suggestions for CoreData

2008-05-21 Thread Jens Alfke
On 21 May '08, at 6:20 PM, Devraj Mukherjee wrote: environment. I am searching for RDBMS server products provide native Cocoa/CoreData support. My research reveals Postgres and MySQL support seems flaky. Huh? I thought CoreData only worked with sqlite (and XML files.) I don't think there's a

Re: RDBMS suggestions for CoreData

2008-05-21 Thread Nick Zitzmann
On May 21, 2008, at 7:20 PM, Devraj Mukherjee wrote: I am writing a CoreData app that will be used in a multi user environment. Good luck with that; CoreData doesn't support multi-user environments. Nick Zitzmann ___

Re: Method -fax: in IB's First Responder?

2008-05-21 Thread Michael Ash
On Thu, May 22, 2008 at 9:15 AM, Erik Buck <[EMAIL PROTECTED]> wrote: > In the NeXTstep 2.0 or 3.0 time frame, NeXT added AppKit framework support > for faxing. Anything that could be printed could be faxed. The cool part > was that all existing AppKit based applications automatically got fax > s

RDBMS suggestions for CoreData

2008-05-21 Thread Devraj Mukherjee
Hi everyone, I am writing a CoreData app that will be used in a multi user environment. I am searching for RDBMS server products provide native Cocoa/CoreData support. Any suggestions? My research reveals Postgres and MySQL support seems flaky. -- "I never look back darling, it distracts from

Re: Method -fax: in IB's First Responder?

2008-05-21 Thread Erik Buck
In the NeXTstep 2.0 or 3.0 time frame, NeXT added AppKit framework support for faxing. Anything that could be printed could be faxed. The cool part was that all existing AppKit based applications automatically got fax support via the print panel without even being recompiled. This is ano

Re: create a directory (UTF8 string) in cocoa

2008-05-21 Thread Michael Ash
On Thu, May 22, 2008 at 8:12 AM, Wayne Shao <[EMAIL PROTECTED]> wrote: > I could only fine mkdir() in C. Is there anything in Cocoa? I don't think > mkdir() can handle NSString. I need to include Chinese characters in my > directory name. Other have answered your primary question, I just want to

[ job-spam ] Blizzard Mac Team is hiring

2008-05-21 Thread Rob Barris
If you think you can help us bring StarCraft II, more WoW follow-ons, and other fun Blizzard games to the Mac, please apply! If you have questions please reply to me directly and avoid list clutter - rbarris "at" blizzard.com. http://www.blizzard.com/us/jobopp/mac-senior-software-enginee

Re: any data on Mac OS X 10.5 install base?

2008-05-21 Thread Joe Ranieri
Is there any data on the install base? What is the minimal set of platforms and OS versions that I need to support in order to make any meaningful commercial software There's also Adium's statistics from its auto-updater: http://www.adiumx.com/sparkle/ Joe Ranieri Lead Magician, Alacatia L

Re: any data on Mac OS X 10.5 install base?

2008-05-21 Thread Shawn Erickson
On Wed, May 21, 2008 at 5:49 PM, Wayne Shao <[EMAIL PROTECTED]> wrote: > I am writing my first application in Cocoa. Still in learning mode. > > I am using many new APIs or framework kits for 10.5. This will limit the > usefulness of my software. > Is there any data on the install base? What is th

Re: any data on Mac OS X 10.5 install base?

2008-05-21 Thread I. Savant
Is there any data on the install base? What is the minimal set of platforms and OS versions that I need to support in order to make any meaningful commercial software The Omni Group has a page where they share their own collected information: http://update.omnigroup.com/ -- I.S.

Re: ANN: Step by step introduction to programming with Cocoa

2008-05-21 Thread Jack Repenning
On May 21, 2008, at 5:38 PM, Julius Guzy wrote: Actually the idea was to include a text box at the end of each section where people could post queries regarding that section, e.g. questions about something they did not understand or something which did not quite work as expected etc and w

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Scott Anguish
On May 21, 2008, at 6:58 PM, Rua Haszard Morris wrote: I don't believe Peter Duniho's barking up the wrong tree - he sees room for improvement, and wants to discuss what to do to make it happen. I.e. he appears to care about making the platform better (probably something we all share)...

any data on Mac OS X 10.5 install base?

2008-05-21 Thread Wayne Shao
I am writing my first application in Cocoa. Still in learning mode. I am using many new APIs or framework kits for 10.5. This will limit the usefulness of my software. Is there any data on the install base? What is the minimal set of platforms and OS versions that I need to support in order to ma

Re: docset for 10.4?

2008-05-21 Thread Scott Anguish
On May 21, 2008, at 8:03 PM, Shawn Erickson wrote: On Wed, May 21, 2008 at 4:59 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: Anyone know where to get the documentation docset for 10.4? The current documentation set available online (or on your system if updated via Xcode) attempts to make i

Re: ANN: Step by step introduction to programming with Cocoa

2008-05-21 Thread Shawn Erickson
On Wed, May 21, 2008 at 5:38 PM, Julius Guzy <[EMAIL PROTECTED]> wrote: > I suggested some time back (A documetation suggestion 19 May 2008 13:31:30) > but no one took me up on it, the idea of seeing if Apple would so to speak > "donate" a copy of their documentation so it could be used as the ba

Re: ANN: Step by step introduction to programming with Cocoa

2008-05-21 Thread Julius Guzy
Date: Wed, 21 May 2008 12:33:12 -0700 (PDT) From: Erik Buck <[EMAIL PROTECTED]> Subject: ANN: Step by step introduction to programming with Cocoa To: cocoa-dev@lists.apple.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=iso-8859-1 I have started a guided introduction to C

Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Shawn Erickson
On Wed, May 21, 2008 at 5:26 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: To be clearer... I am suggesting you review the whole chapter I linked below not just the first section of it looking primarily for discussion of outlets (IBOutlet) and actions.

Re: fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Shawn Erickson
On Wed, May 21, 2008 at 5:07 PM, Matthew Youney <[EMAIL PROTECTED]> wrote: > What is the instance name of the controller object instantiated by Interface > Builder? They do not have a name... at least not in the way you appear to be asking. Objects in the nib or external objects (file owner, etc

Re: create a directory (UTF8 string) in cocoa

2008-05-21 Thread Citizen
On 22 May 2008, at 01:12, Wayne Shao wrote: How do I create a new directory in Cocoa? e.g, ~/a/b existsand I want to create ~/a/b/c/d/file.txt. So I need to something equivalent to mkdir -p ~/a/b/c/d I could only fine mkdir() in C. Is there anything in Cocoa? NSFileManager has two

Re: create a directory (UTF8 string) in cocoa

2008-05-21 Thread Wayne Packard
NSFileManager would be one way to do it. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html wp On May 21, 2008, at 5:12 PM, Wayne Shao wrote: A few writeToFile() methods in Cocoa only works if the directory already exis

create a directory (UTF8 string) in cocoa

2008-05-21 Thread Wayne Shao
A few writeToFile() methods in Cocoa only works if the directory already exists. How do I create a new directory in Cocoa? e.g, ~/a/b existsand I want to create ~/a/b/c/d/file.txt. So I need to something equivalent to mkdir -p ~/a/b/c/d I could only fine mkdir() in C. Is there anything in

fundamental question: how do I call controller methods from other classes?

2008-05-21 Thread Matthew Youney
This is a very basic question: How do I call controller methods from other classes? Or even a more basic question: What is the instance name of the controller object instantiated by Interface Builder? I am am new to Cocoa, however a career programmer, and I am feeling quite dumn here. I am obvio

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Peter Duniho
Date: Wed, 21 May 2008 16:33:29 -0700 From: William Turner <[EMAIL PROTECTED]> - too much "cocoa is wonderful" vs. not enough dry detail So several people have alleged. Looking at the documentation, I'm not finding anything that seems to qualify as hype. Could you provide some links? For wh

Re: docset for 10.4?

2008-05-21 Thread Shawn Erickson
On Wed, May 21, 2008 at 4:59 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > Anyone know where to get the documentation docset for 10.4? The current documentation set available online (or on your system if updated via Xcode) attempts to make it clear what API methods/functions/etc. are available in

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Jeff LaMarche
On May 21, 2008, at 7:37 PM, Peter Duniho wrote: It's true, the phrase "riff-raff" wasn't actually used. But it's the essence of what was written. I don't know why it is you guys didn't notice those particular statements, and I agree that they aren't representative of the bulk of the com

docset for 10.4?

2008-05-21 Thread Torsten Curdt
Anyone know where to get the documentation docset for 10.4? cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lis

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Rua Haszard Morris
2 Cocoa requires you when learning to implement things by clicking and dragging, which makes learning harder for some people (this is a real annoyance to me, why can we not see/edit these connections in a text file? why is there so much other crap in the nib xml? etc). The fact that you hav

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Peter Duniho
On May 21, 2008, at 12:27 PM, Sherm Pendley wrote: On Wed, May 21, 2008 at 1:30 PM, Peter Duniho <[EMAIL PROTECTED]> wrote: My _main_ objection is how newcomers to Mac development are treated. Please, when someone new to the current Mac development environment brings up one or more of th

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Peter Duniho
Date: Wed, 21 May 2008 15:14:24 -0400 From: Jeff LaMarche <[EMAIL PROTECTED]> Pete - you complain that people should treat newcomers better, yet here you are characterizing what many of us have said in a blatantly antagonistic way. Riff-raff? We "like" that it's keeping you out? Nobody said any s

Method -fax: in IB's First Responder?

2008-05-21 Thread Andrew Merenbach
Hi, all, In Interface Builder 3 (or even before), create a new Application nib, and wire up a button in the default window to FirstResponder -- one of the methods that's displayed is -fax:. I found a PDF copy somewhere of the OpenStep Programming Reference, which contains the only refere

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread William Turner
I'm curious: On May 21, 2008, at 3:58 PM, Rua Haszard Morris wrote: - lack of and generally un-useful sample code There is quite a lot of sample code at developer.apple.com. Did you know? What would make it more useful? - too much "cocoa is wonderful" vs. not enough dry detail So seve

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Kyle Sluder
On Wed, May 21, 2008 at 6:58 PM, Rua Haszard Morris <[EMAIL PROTECTED]> wrote: > 2 Cocoa requires you when learning to implement things by clicking and > dragging, which makes learning harder for some people (this is a real > annoyance to me, why can we not see/edit these connections in a text file

Re: Trying to understand -- please help...

2008-05-21 Thread Andy Lee
On May 21, 2008, at 2:45 PM, Shawn Erickson wrote: Nonsense. Nonsense again. Yet more nonsense. Lets avoid this kind of "tone" in emails on this list... Yes, please. --Andy correct, clarify, explain, etc. and leave it at that. -Shawn ___ Cocoa-

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Mike Abdullah
On 21 May 2008, at 23:58, Rua Haszard Morris wrote: I don't believe Peter Duniho's barking up the wrong tree - he sees room for improvement, and wants to discuss what to do to make it happen. I.e. he appears to care about making the platform better (probably something we all share)... Th

Re: Core-Data Multithreading question about save

2008-05-21 Thread Hamish Allan
On Wed, May 21, 2008 at 11:36 PM, Dex Morgan <[EMAIL PROTECTED]> wrote: > This link actions happend in the main thread (so inside the main object > context) and the app can't see objects inserted into the second > managedobject until I perform a -save: to it. > However it seems to be a damn expens

Re: How to schedule an autonomous (SMTP/FAX) service.

2008-05-21 Thread Kyle Sluder
On Wed, May 21, 2008 at 10:20 AM, <[EMAIL PROTECTED]> wrote: >I was thinking of using launchd or perhaps an independent cron job. But > I'm not sure of the simplist/most efficient way to do something like this in > Cocoa/ObjC. Scheduled jobs are the domain of launchd; this is a concept tha

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Rua Haszard Morris
I don't believe Peter Duniho's barking up the wrong tree - he sees room for improvement, and wants to discuss what to do to make it happen. I.e. he appears to care about making the platform better (probably something we all share)... These are the main valid issues from my point of view: 1

Re: Scrolling NSStatusBar

2008-05-21 Thread Kyle Sluder
On Wed, May 21, 2008 at 5:11 PM, Mr. Gecko <[EMAIL PROTECTED]> wrote: > How would I scroll a NSStatusBar I came up with a temporary fix but if there > is a better way please tell me. The "right way" would be to subclass NSView (or perhaps even NSTextField) and have it do the drawing as appropriate

Re: Core-Data Multithreading question about save

2008-05-21 Thread Dex Morgan
Il giorno 22/mag/08, alle ore 00:18, Hamish Allan ha scritto: Not sure I understand your question, but if you need to differentiate between objects inserted before some point in time and objects inserted afterwards, you can explicitly model a timestamp in a managed object subclass. See e.g., ht

Re: Core-Data Multithreading question about save

2008-05-21 Thread Hamish Allan
On Wed, May 21, 2008 at 9:25 PM, Dex Morgan <[EMAIL PROTECTED]> wrote: > note: I need to 'see' both > previous newly inserted object and old objects). Not sure I understand your question, but if you need to differentiate between objects inserted before some point in time and objects inserted afte

Re: KVO Response for incomplete paths

2008-05-21 Thread Mike Abdullah
On 21 May 2008, at 22:15, Gordon Apple wrote: So what you are saying (if I understand it correctly) is that once you try to observe the property at that path, the intercept mechanism for the property set-accessor is actually put into place, along with its before/after notifications, and

Re: Trying to understand -- please help...

2008-05-21 Thread Sherm Pendley
On Wed, May 21, 2008 at 5:06 PM, Christopher Nebel <[EMAIL PROTECTED]> wrote: > On May 21, 2008, at 10:36 AM, Sherm Pendley wrote: > > [Objects] are simply released when the autorelease pool they are created >>> in is released - which you can treat as occurring at the end of the method >>> in whi

Re: Trying to understand -- please help...

2008-05-21 Thread Ken Thomases
On May 21, 2008, at 1:35 PM, Johnny Lundy wrote: All it would take is a single sentence under the "Class Methods" header, to say that these methods autorelease the returned object (AND that such autoreleasing means that the object will be deallocated if the method in which it was created re

Re: KVO Response for incomplete paths

2008-05-21 Thread Gordon Apple
So what you are saying (if I understand it correctly) is that once you try to observe the property at that path, the intercept mechanism for the property set-accessor is actually put into place, along with its before/after notifications, and will notify properly when the path is actually viable

Re: Trying to understand -- please help...

2008-05-21 Thread Sherm Pendley
On Wed, May 21, 2008 at 1:32 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > > Folks please don't point someone at things like NSArrayController when > they are just getting started. Using controller layer / bindings can > make a lot of things easier and cleaner code (heck no code) but it > really

Scrolling NSStatusBar

2008-05-21 Thread Mr. Gecko
How would I scroll a NSStatusBar I came up with a temporary fix but if there is a better way please tell me. - (void)timer:(NSTimer *)t { if (scroll) { if ([info length]>5 && lasts != [info length]-4) { [musicMenuItem setTitle: NSLocalizedString([info substringWithRange:NSMak

Re: Trying to understand -- please help...

2008-05-21 Thread Hamish Allan
On Wed, May 21, 2008 at 7:35 PM, Johnny Lundy <[EMAIL PROTECTED]> wrote: > All it would take is a single sentence under the "Class Methods" header, to > say that these methods autorelease the returned object (AND that such > autoreleasing means that the object will be deallocated if the method in

Re: Trying to understand -- please help...

2008-05-21 Thread Christopher Nebel
On May 21, 2008, at 10:36 AM, Sherm Pendley wrote: [Objects] are simply released when the autorelease pool they are created in is released - which you can treat as occurring at the end of the method in which the init occurs. Nonsense again. The autorelease pool is emptied at the end of each

  1   2   3   >