Re: ObjC Question - labeled arguments

2008-05-22 Thread Peter Zegelin
Um - hangs head in embarrassment. It compiles but indeed it doesn't work (unrecognized selector ). After I got it to compile I thought Aha! not realizing the confusion my little question about labeled arguments would cause. Sorry about that - I'm flabbergasted that I have got so far with so

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

2008-05-22 Thread Mike Fischer
Am 22.05.2008 um 07:50 schrieb Charles Srstka: On May 22, 2008, at 12:09 AM, Mike Fischer wrote: Anyway I remember reading somewhere that Apple warned about relying on ..namedfork/rsrc always working. I can't find the reference at the moment though. That was WWDC 2006, in which the speake

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

2008-05-22 Thread Harry
There are also a couple of wiki-book projects on Learning Cocoa. Here are links: http://en.wikibooks.org/wiki/Programming_Mac_OS_X_with_Cocoa_for_beginners http://en.wikibooks.org/wiki/Programming:Cocoa > Date: Wed, 21 May 2008 12:33:12 -0700 (PDT) > From: Erik Buck <[EMAIL PROTECTED]> > Sub

NSConnection does not close ports

2008-05-22 Thread Gerriet M. Denkmann
I have a server, which does create an NSConnection on some NSSocketPort and publishes this fact via Bonjour. A client opens a connection, sends some messages via Distributed Objects, and closes it again. This implies opening and closing a few file descriptors on sockets. Works fine. Usually.

Re: ObjC Question - labeled arguments

2008-05-22 Thread Bill Bumgarner
On May 21, 2008, at 11:20 PM, Johnny Lundy wrote: 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 me

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

2008-05-22 Thread Mike Fischer
Am 22.05.2008 um 08:49 schrieb Charles Srstka: Is it really vital functionality, though? Resource forks have been deprecated for some time now, and FSRefs, while useful and well- liked by many users, don't really seem to be on Apple's radar these days. Certain parts of Apple have never had

Re: connections and the nib lifecycle

2008-05-22 Thread Torsten Curdt
On May 22, 2008, at 05:27, Chris Hanson wrote: 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

NSPasteboard Delegate

2008-05-22 Thread Adil Saleem
Hi, I am trying to set my object as delegate of NSPasteBoard. I am calling from awakeFromNib NSPasteboard *pb = [NSPasteboard generalPasteboard]; [pb setDelegate:self]; However, on running, it raises exception. There is also a warning at compile time that says NSPasteboard may not respond to m

Re: docset for 10.4?

2008-05-22 Thread Torsten Curdt
On May 22, 2008, at 02:44, Scott Anguish wrote: 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 y

PDFPage Creation query

2008-05-22 Thread Amrit Majumdar
Hi All, I am playing around with the PDFKit. I was planning to create a new PDFDocument, with my own PDF Page that I generate after subclassing PDFPage Accordingly I subclassed PDFPage and have over-riden the following menthods. - (id)initWithImage:(NSImage *)image; Steps I followed to creat

NSTextField does not lose focus

2008-05-22 Thread Torsten Curdt
I've got a NSTextField (on a NSTabView). I open the window. I click the text field and enter some text. Now I click on a button next to it. The value has still not been "committed" and it still has the cursor. Then I click outside of the text field (just somewhere in the view) and still the

Re: PDFPage Creation query

2008-05-22 Thread Antonio Nunes
On May 22, 2008, at 10:20 AM, Amrit Majumdar wrote: I was planning to create a new PDFDocument, with my own PDF Page that I generate after subclassing PDFPage Accordingly I subclassed PDFPage and have over-riden [initWithImage] [...] MyPDFPageClass *myPDFPage = [[ MyPDFPageClass alloc ]in

Re: Programmatically get treecontroller selection

2008-05-22 Thread Steven Hamilton
All sorted. Turns out that in my obsession with bindings and coredata I forgot that to communicate with objects in a NIB you need to use Outlets. Doh! I've now setup outlets from my datasource to the controllers and can pull the selection and context out no problems. Thanks for bearing wi

Core Data: How to encrypt a persistent store

2008-05-22 Thread Ruotger Skupin
Hi, I have an application which uses Core Data and handles sensitive information. Is there an easy way to encrypt the on-disk persistent store provided I'm reasonably fluent in libCrypto and do not want to use an encrypted disk image? Ruotger _

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Robert Cerny
Well, I just made new bugreport #5955452 to enhance docs sets with more sample code inside of method descriptions. I took NSEnumerator's nextObject method as a sample how to do it the right way..

Re: NSPasteboard Delegate

2008-05-22 Thread Citizen
Can you copy and paste your awakeFromNib method and provide more detail about the exception raised? On 22 May 2008, at 08:57, Adil Saleem wrote: I am trying to set my object as delegate of NSPasteBoard. I am calling from awakeFromNib NSPasteboard *pb = [NSPasteboard generalPasteboard]; [pb s

File integrity

2008-05-22 Thread slasktrattenator
Hi all, is there a way to tell if my executable was launched by/attached to some other process? Basically, I just want to kill myself as soon as I sense those prying eyes, in order to make it just a little it harder for the crackers. TIA ___ Cocoa-dev

Re: Core-Data Multithreading question about save

2008-05-22 Thread Dex Morgan
Il giorno 22/mag/08, alle ore 01:00, Hamish Allan ha scritto: Do you really need to do this after every object inserted? Could you do it in bulk? Not necessarily. I've tried to do this sequence: - my second thread add objects into second context until the end saving each objectID in an arra

Re: Core Data: How to encrypt a persistent store

2008-05-22 Thread Robert Cerny
On 22.5.2008, at 12:12, Ruotger Skupin wrote: Hi, I have an application which uses Core Data and handles sensitive information. Is there an easy way to encrypt the on-disk persistent store provided I'm reasonably fluent in libCrypto and do not want to use an encrypted disk image? Ruotg

Re: NSTextField does not lose focus

2008-05-22 Thread Torsten Curdt
On May 22, 2008, at 11:15, Torsten Curdt wrote: I've got a NSTextField (on a NSTabView). I open the window. I click the text field and enter some text. Now I click on a button next to it. The value has still not been "committed" and it still has the cursor. Then I click outside of the tex

Re: File integrity

2008-05-22 Thread Robert Cerny
On 22.5.2008, at 12:35, [EMAIL PROTECTED] wrote: Hi all, is there a way to tell if my executable was launched by/attached to some other process? Basically, I just want to kill myself as soon as I sense those prying eyes, in order to make it just a little it harder for the crackers. TIA Chec

Re: NSWindow in main nib.

2008-05-22 Thread Robert Cerny
On 22.5.2008, at 12:52, [EMAIL PROTECTED] wrote: Hi, I posted a qustion that about wndow zoom button.Now i got the window by setting all the intial positions. Thanks Sorry I have no idea what are you talking about. Could you please rephrase your question? Anyway, please don't cross po

NSWindow in main nib.

2008-05-22 Thread vinitha
Hi, I posted a qustion that about wndow zoom button.Now i got the window by setting all the intial positions. Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

probably OT: using encrypted disk images with NSTask and hdiutil

2008-05-22 Thread Ruotger Skupin
Hi, To protect sensitive user data I attach an encrypted disk image and store the application data there. I'm using hdiutil with the -passphrase option to create and attach encrypted disk images. This is deprecated and obviously not the correct way but quite frankly the man file for hdiut

Re: NSTextField does not lose focus

2008-05-22 Thread Robert Cerny
On 22.5.2008, at 11:15, Torsten Curdt wrote: I've got a NSTextField (on a NSTabView). I open the window. I click the text field and enter some text. Now I click on a button next to it. The value has still not been "committed" and it still has the cursor. Then I click outside of the text f

Re: File integrity

2008-05-22 Thread Keith Duncan
is there a way to tell if my executable was launched by/attached to some other process? You can use ptrace(2) with the PT_DENY_ATTACH request to prevent anyone from attaching and will kill the process if it is already being traced. See http://steike.com/code/debugging-itunes-with-gdb/ Th

Re: How to handle bad certificate error in NSURLDownload?

2008-05-22 Thread parag vibhute
Following is code which I have implemented: - (void)download:(WebDownload *)download didFailWithError:(NSError *)error { // release the connection [download release]; // inform the user //NSLog(@"Download failed! Error - %@ %@", //[error localizedDescrip

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Hamish Allan
On Thu, May 22, 2008 at 12:37 AM, Peter Duniho <[EMAIL PROTECTED]> wrote: > It's true, the phrase "riff-raff" wasn't actually used. But it's the > essence of what was written. > > I'm not reading between the lines. People are explicitly stating the > opinions I've described. I don't think you u

Re: File integrity

2008-05-22 Thread Jean-Daniel Dupas
Le 22 mai 08 à 12:57, Keith Duncan a écrit : is there a way to tell if my executable was launched by/attached to some other process? You can use ptrace(2) with the PT_DENY_ATTACH request to prevent anyone from attaching and will kill the process if it is already being traced. See http:

Re: File integrity

2008-05-22 Thread slasktrattenator
I know. I just want to discourage the baby crackers. Codesign looks interesting. Ptrace seems to have been strengthened in Leopard, too. At least I wasn't able to bypass it as easily as outlined by steike. Always something :-) Thanks! On Thu, May 22, 2008 at 1:22 PM, Jean-Daniel Dupas <[EMAIL PRO

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Jeff LaMarche
On May 21, 2008, at 9:58 PM, Andy Lee wrote: There's already an inherent lower bound on the barrier to entry for Cocoa. You have to understand certain fundamentals -- some conceptual, some procedural. If you don't have those fundamentals, you'll never make Cocoa work. There is also a se

Re: NSPasteboard Delegate

2008-05-22 Thread Graham Cox
NSPasteboard indeed does not implement a setDelegate: method. The object you pass as in -declareTypes:owner: can act as the pasteboard's delegate in the case of when you promise (but do not actually provide) data when writing your data types to the pasteboard. What are you trying to do? Se

Re: ObjC Question - labeled arguments

2008-05-22 Thread Andy Lee
On May 22, 2008, at 1:49 AM, Bill Bumgarner wrote: I don't believe there are any such methods left in the supported Cocoa API. There are at least five. An API/Contains search for "::" in the Xcode documentation window turns up: +[CAMediaTimingFunction functionWithControlPoints] -[CAMe

Re: NSPasteboard Delegate

2008-05-22 Thread Adil Saleem
Let me be more precise this time. I haven't used pasteboards before. I think i asked wrong question. Actually i want my application to be notified whenever there is a new text copied/cutted. So that i can paste it in my application. So please guide me how that can be achieved? (with or without d

NSTExtView

2008-05-22 Thread vinitha
i've set the bold menu item by setting the action addFontTrait in fontmanager.Now it is working i can give the data's as bold italic etc in textView. I tried to convert it to HTML form by using the code. NSString * aTitle = @"Sample"; NSArray*excluded = [NSArray arrayWithObjects: @"

NSTextField will not become editable in a borderless window

2008-05-22 Thread Peter Burtis
When I add an NSTextField to a borderless window, nothing I do will make it editable. Specifically, running the code below, the text field just won't work. (I've tried it with all backing types, BTW.) NSWindow *window = [[NSWindow alloc] initWithContentRect:NSMakeRect(300,300,300,300) s

Re: NSPasteboard Delegate

2008-05-22 Thread Robert Cerny
Hi, I don't think it's possible to be notified about pasteboard change. Depending on your needs I believe a polling should be the right way to go. HTH Robert On 22.5.2008, at 14:08, Adil Saleem wrote: Let me be more precise this time. I haven't used pasteboards before. I think i asked w

Re: NSPasteboard Delegate

2008-05-22 Thread Matt Gough
Maybe you could set up a timer to run once every second or so that checks the pasteboard's changeCount. Not sure there is an explicit notification of changes. Matt On 22 May 2008, at 14:08, Adil Saleem wrote: Actually i want my application to be notified whenever there is a new text copied/

Re: NSTextField will not become editable in a borderless window

2008-05-22 Thread Robert Cerny
You need to subclass NSTextField. HTH Robert On 22.5.2008, at 14:13, Peter Burtis wrote: When I add an NSTextField to a borderless window, nothing I do will make it editable. Specifically, running the code below, the text field just won

Re: NSPasteboard Delegate

2008-05-22 Thread Graham Cox
Well, Paste doesn't work like this. You don't get notified when there's something new to paste. Instead, the user tries to perform the paste, at which point you can check if the pasteboard contains anything you can use. You can also perform this check when validating the "paste" menu item s

Re: NSPasteboard Delegate

2008-05-22 Thread Paul Bailey
Would it be possible for one to observe the changeCount? Paul On Thu, May 22, 2008 at 1:17 PM, Matt Gough <[EMAIL PROTECTED]> wrote: > Maybe you could set up a timer to run once every second or so that checks > the pasteboard's changeCount. Not sure there is an explicit notification of > changes

Re: Core-Data Multithreading question about save

2008-05-22 Thread Hamish Allan
On Thu, May 22, 2008 at 11:37 AM, Dex Morgan <[EMAIL PROTECTED]> wrote: > What's I'm wrong? The ID still temporany until I save the second managed > object but If I can do it I can also make my relationship, the overhead it's > the same. Surely the overhead is less when you do many rather than on

Re: ObjC Question - labeled arguments

2008-05-22 Thread glenn andreas
On May 22, 2008, at 12:49 AM, Bill Bumgarner wrote: 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, a

Re: NSPasteboard Delegate

2008-05-22 Thread matt . gough
On 22 May 2008, at 14:18, Graham Cox wrote: Do read this: file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/CopyandPaste/Articles/pbFundamentals.html (by the way, does pasting the file URL

Re: NSTextField will not become editable in a borderless window

2008-05-22 Thread Graham Cox
Peter, I've run into something similar and I think it has to do with the window server not making a window active (i.e. main and key) if it has the borderless attribute. The workaround I ended up using was to override a private undocumented NSWindow method which controls use to query the ac

Re: NSTextField will not become editable in a borderless window

2008-05-22 Thread Graham Cox
Found it just after I posted: - (BOOL) _hasActiveControls { return YES; } Also, while this works to show an active *appearance* for buttons, pop- ups and so on, I've never tried it with text fields. It's a quick thing to try though. It would be useful for Apple to provide a properl

Re: NSTextField will not become editable in a borderless window

2008-05-22 Thread Graham Cox
Me again ;-) It just occurred to me - have you tried the following overrides in NSWindow?: - (BOOL) canBecomeKeyWindow { return YES; } - (BOOL) acceptsFirstResponder { return YES; } - (BOOL) becomeFirstResponder { return YES; } - (BOOL) resignFirstResponder { return YES; } Borderless windows

Displaying NSAttributedStrings in an NSTableView with non-uniform row height

2008-05-22 Thread Christian Moen
cocoa-dev, I'd like to display textual information in varying fonts and sizes in NSTableColumns using an NSAttributedString, but I'm having problems getting my NSTableView to display the information using varying row height. My data source implements numberOfRowsInTableView: and tableView:objectV

Re: How to handle bad certificate error in NSURLDownload?

2008-05-22 Thread Geoff Beier
On Thu, May 22, 2008 at 6:57 AM, parag vibhute <[EMAIL PROTECTED]> wrote: > When I run my application first time, it opened up sheet & then I changed > trust settings as "Always trust" & clicked on continue. Then again after 2 > min., same sheet opened up showing "bad server certificate". This ti

Re: NSPasteboard Delegate

2008-05-22 Thread Graham Cox
Great, thanks - I'll do that in future. G. On 22 May 2008, at 10:31 pm, [EMAIL PROTECTED] wrote: To get the equivalent online url, you can replace: file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/ with: http://develop

Re: NSConnection does not close ports

2008-05-22 Thread Adam R. Maxwell
On May 22, 2008, at 12:13 AM, Gerriet M. Denkmann wrote: I have a server, which does create an NSConnection on some NSSocketPort and publishes this fact via Bonjour. A client opens a connection, sends some messages via Distributed Objects, and closes it again. This implies opening and closi

Re: NSTextField will not become editable in a borderless window

2008-05-22 Thread Peter Burtis
Thanks Robert and Graham. FWIW, the one that finally did the trick was overriding canBecomeKeyWindow to return YES, which makes a lot of sense in hindsight. For whatever strange reason, nothing else suggested worked. (This is all happening on a CoreAnimation layer, BTW, which may well be

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

2008-05-22 Thread Shawn Erickson
On May 21, 2008, at 11:49 PM, Charles Srstka wrote: FSRefs are also highly filesystem-dependent, and HFS+, the only file system (as far as I know) that currently fully supports them, is showing its age and ready to be replaced, possibly by a file system like ZFS that wasn't invented by App

PMSessionEndDocumentNoDialog error code -43

2008-05-22 Thread Torsten Curdt
Anyone an idea what error code -43 could be? PMSessionEndDocumentNoDialog documentation points me to http://developer.apple.com/documentation/GraphicsImaging/Reference/CorePrintRef/Reference/reference.html#/ /apple_ref/doc/uid/TP40005775-CH5g-RCM0127 But that does not list that error code. T

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

2008-05-22 Thread Julius Guzy
On 22 May 2008, at 1:43, Shawn Erickson wrote: 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

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

2008-05-22 Thread Caleb Strockbine
On May 21, 2008, at 2:39 PM, Johnny Lundy <[EMAIL PROTECTED]> wrote: Here's why the OP was not aware of the behavior of an NSArray class method: Here's the verbatim documentation for +arrayWithObjects: [...deleted...] See? Not a word about autoreleasing anything, or having to retain the retu

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

2008-05-22 Thread Julius Guzy
On 22 May 2008, at 1:52, Jack Repenning wrote: 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 someth

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

2008-05-22 Thread Julius Guzy
On 22 May 2008, at 4:55, David Casseres wrote: That's a really good idea, your wiki-that's-more-than-a-wiki. You're in charge! 8^{) Ha Ha But just as a matter of interest, how would one set about talking to apple about such a thing? I would guess one would need first to demonstrate some

Re: Core Data: How to encrypt a persistent store

2008-05-22 Thread Jens Alfke
On 22 May '08, at 3:12 AM, Ruotger Skupin wrote: I have an application which uses Core Data and handles sensitive information. Is there an easy way to encrypt the on-disk persistent store provided I'm reasonably fluent in libCrypto and do not want to use an encrypted disk image? With the

CoreData Statement Still Active (CoreData Multithreading)

2008-05-22 Thread Dex Morgan
Il giorno 22/mag/08, alle ore 14:25, Hamish Allan ha scritto: Surely the overhead is less when you do many rather than one at a time? Ok I'll try. Did you know something about this error: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'statement i

Newbie query re default buttons

2008-05-22 Thread Michael McLaughlin
As a Cocoa newbie (after years of Carbon), I am working my way through the 3rd edition of Hillegass' book. I finished his SpeakLine example then thought I'd challenge myself by making the Speak button the default button -- but failed. I coded the following *** AppController.h @interface AppCont

Re: NSTExtView

2008-05-22 Thread Jens Alfke
On 22 May '08, at 3:02 AM, [EMAIL PROTECTED] wrote: NSData*tData = [str dataFromRange: NSMakeRange(0, [str length]) documentAttributes: attr error: nil]; It giving html code, but it doesn;t giving ,, and colour tags corresponding to the texts in textview. You didn't show where 'st

Re: probably OT: using encrypted disk images with NSTask and hdiutil

2008-05-22 Thread Jens Alfke
On 22 May '08, at 3:32 AM, Ruotger Skupin wrote: To protect sensitive user data I attach an encrypted disk image and store the application data there. Interesting. FYI, if the data is fairly small you can store it directly in a Keychain item(s), but for large amounts of data a disk image

Re: Newbie query re default buttons

2008-05-22 Thread Robert Cerny
Hi, could you simply add the default flag in IB? 1. select the button 2. Hit -1 to bring up Inspector pane 3. Click the dark grey rectangle next to "Key Equiv." 4. Hit Enter HTH Robert On 22.5.2008, at 16:51, Michael McLaughlin wrote: As a Cocoa newbie (after years of Carbon), I am working my

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

2008-05-22 Thread Jonathan Hendry
Perhaps a better way of doing this would be a web or WebKit app with two panes. One that shows the Apple docs at Apple's site, and the other pane points to a page at a non-Apple wiki site that corresponds to the currently displayed Apple site. That would ensure that the Apple content stays

Re: Newbie query re default buttons

2008-05-22 Thread Robert Cerny
Just FYI, [myButton setKeyEquivalent:@"\r"]; is the correct way to set button to Default. Are you sure that speakButton is not nil? Robert On 22.5.2008, at 16:51, Michael McLaughlin wrote: As a Cocoa newbie (after years of Carbon), I am working my way through the 3rd edition of Hillegass'

Re: File Manager and FSRefs [was: creating a resource fork and writing raw bytes to it]

2008-05-22 Thread Jens Alfke
On 21 May '08, at 11:49 PM, Charles Srstka wrote: Is it really vital functionality, though? Resource forks have been deprecated for some time now, and FSRefs, while useful and well- liked by many users, don't really seem to be on Apple's radar these days. There's a ton of other functional

Re: PMSessionEndDocumentNoDialog error code -43

2008-05-22 Thread Jens Alfke
On 22 May '08, at 7:15 AM, Torsten Curdt wrote: Anyone an idea what error code -43 could be? fnfErr (file not found). I still know that one by heart :) Look in , the central listing of Carbon error codes. In general, any time you get an error from any API that's a negative number (down t

Fighting NSCollectionView for first Responder

2008-05-22 Thread Daniel Vollmer
Hi all, I have an NSCollectionView in whose item-views I want to do some event handling (validateMenuItem: to enable / disable the events that currently make sense and a bit of keyboard / mouse input), but I'd also like the NSCollectionView to handle the selection of items. So I pass the mo

Re: Displaying NSAttributedStrings in an NSTableView with non-uniform row height

2008-05-22 Thread Jens Alfke
On 22 May '08, at 5:53 AM, Christian Moen wrote: In order to get the row height correctly, I understand I need to implement tableView:heightOfRow:. How can I find out how high my row needs to be? I know I can call size on an NSAttributedString, but the height returned doesn't take line breaka

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

2008-05-22 Thread Greg Titus
On May 21, 2008, at 12:37 PM, Johnny Lundy wrote: This is just one example of that "little tidbit" that is always left out of these references by Apple. It seems to be the <.O. for some reason. The "tidbit" isn't some extraneous bell or whistle; it's always something fundamental. They c

Application rights.

2008-05-22 Thread Eugen Belyakov
I want to create updater for my application. The problem is that application can be update not by the user, that installed it. And updater application won't be able to overwrite files. Is it possible to increase rights of my application through authentification (like in Finder when performing opera

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Sherm Pendley
On Wed, May 21, 2008 at 9:58 PM, Andy Lee <[EMAIL PROTECTED]> wrote: > > There's already an inherent lower bound on the barrier to entry for Cocoa. > You have to understand certain fundamentals -- some conceptual, some > procedural. If you don't have those fundamentals, you'll never make Cocoa >

Re: Application rights.

2008-05-22 Thread Shawn Erickson
On Thu, May 22, 2008 at 8:43 AM, Eugen Belyakov <[EMAIL PROTECTED]> wrote: > I want to create updater for my application. The problem is that application > can be update not by the user, that installed it. And updater application > won't be able to overwrite files. Is it possible to increase rights

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

2008-05-22 Thread Charles Srstka
On May 22, 2008, at 2:35 AM, Mike Fischer wrote: FSRefs are also highly filesystem-dependent, They are? That's news to me. In what way? Sorry, what I meant to say there was that the unique features offered by FSRefs are filesystem-dependent - in other words, using it on a non- HFS+ disk w

Re: ImageCapture API versions

2008-05-22 Thread Thomas Engelmeier
On 21.05.2008, at 22:39, Rick Mann wrote: On May 20, 2008, at 12:28:22, A.M. wrote: Which camera is this? Image Capture has no native API for remote control Actually, PTP has an specified command (getProperty / setProperty) and IIRC Image Capture SDK for 10.4 had a functional equivalent

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Andy Lee
On May 22, 2008, at 7:46 AM, Jeff LaMarche wrote: On May 21, 2008, at 9:58 PM, Andy Lee wrote: There's already an inherent lower bound on the barrier to entry for Cocoa. You have to understand certain fundamentals -- some conceptual, some procedural. If you don't have those fundamentals,

Re: Multi-storage Core Data

2008-05-22 Thread Rob Napier
On May 17, 2008, at 3:54 PM, Jim Correia wrote: On May 17, 2008, at 3:00 PM, Keary Suska wrote: on 5/17/08 10:27 AM, [EMAIL PROTECTED] purportedly said: I'm trying to build a Core Data app for which some data is user- provided and some data is shipped with the program. Consider a travel itin

Re: Application rights.

2008-05-22 Thread Joseph Kelly
Is PackageMaker suitable for over-writing files of an existing install? It's got authentication built in. If that's not an option, I would recommend the crash course: http:// developer.apple.com/samplecode/BetterAuthorizationSample/index.html Also a question: does anyone know of a Cocoa/obj-

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Sherm Pendley
On Thu, May 22, 2008 at 12:02 PM, Andy Lee <[EMAIL PROTECTED]> wrote: > > The vast majority of this thread, if not all of it, has been about people > struggling to understand the frameworks as they are. We're talking subjective impressions here, so there's no wrong or right to it, but that's not

Re: Application rights.

2008-05-22 Thread j o a r
On May 22, 2008, at 8:43 AM, Eugen Belyakov wrote: I want to create updater for my application. The problem is that application can be update not by the user, that installed it. And updater application won't be able to overwrite files. Is it possible to increase rights of my application t

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

2008-05-22 Thread glenn andreas
On May 22, 2008, at 10:43 AM, Greg Titus wrote: On May 21, 2008, at 12:37 PM, Johnny Lundy wrote: This is just one example of that "little tidbit" that is always left out of these references by Apple. It seems to be the <.O. for some reason. The "tidbit" isn't some extraneous bell or whi

A directory site for open-source Cocoa components?

2008-05-22 Thread Jens Alfke
There are quite a lot of open source Cocoa components these days — everything from small utility classes, to new controls, to entire frameworks — but no easy way to find them all. I keep running into various people's websites that list a handful of components, some of them extremely useful,

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Jeff LaMarche
On May 22, 2008, at 12:02 PM, Andy Lee wrote: The vast majority of this thread, if not all of it, has been about people struggling to understand the frameworks as they are. Like Sherm, I do not agree with this. This thread has been about much more -- has been much bigger -- than a couple o

Re: Application rights.

2008-05-22 Thread Sherm Pendley
On Thu, May 22, 2008 at 12:08 PM, Joseph Kelly <[EMAIL PROTECTED]> wrote: Is PackageMaker suitable for over-writing files of an existing install? The package installer explicitly supports upgrades. When a receipt is found for an earlier version of the package, the package is marked as "upgrade"

Re: Setting iTunes album art with ScriptingBridge

2008-05-22 Thread Daniel Thorpe
Hi everyone, I'm trying to set the artwork of some iTunes tracks using Cocoa & Scripting Bridge. The artwork is being generated using Cocoa, and I planned to use the SB to set the NSImage to the iTunesTracks. However after reading this thead, it seems that it isn't really feasable (if som

Re: A directory site for open-source Cocoa components?

2008-05-22 Thread Andrew Merenbach
Sure, I'd be interested in having/using it. In fact, I would even be willing to host such a thing, although at the moment I have shared hosting from my hosting provider -- would that be an issue? Anyway, give me a domain name idea and if enough people are interested I'll likely register it

What is an id?

2008-05-22 Thread john darnell
Okay, this is a really basic question, but I need some help figuring out what the code wants. In the documentation for NSTableView, I am told that I must implement as part of a datasource the following function: - (id) tableView:(NSTableView *) aTableView objectValueForTableColumn: (NSTableColumn

Re: What is an id?

2008-05-22 Thread Patrick Burleson
On Thu, May 22, 2008 at 12:05 PM, john darnell <[EMAIL PROTECTED]> wrote: > The question is, what does the code want me returning as an id? I'm new to this to, but if I remember correctly, the type id is "any object". So the method implemented returns an Object value for a particular column/row co

Re: What is an id?

2008-05-22 Thread Bill Bumgarner
On May 22, 2008, at 10:05 AM, john darnell wrote: Okay, this is a really basic question, but I need some help figuring out what the code wants. In the documentation for NSTableView, I am told that I must implement as part of a datasource the following function: - (id) tableView:(NSTableVie

Re: What is an id?

2008-05-22 Thread j o a r
On May 22, 2008, at 10:05 AM, john darnell wrote: The question is, what does the code want me returning as an id? I tried to do a search in Cocoa Help on id and as you might imagine, I got lots and lots of hits, none of which looked anywhere near what I wanted for an explanation of what id is.

Re: What is an id?

2008-05-22 Thread Sherm Pendley
On Thu, May 22, 2008 at 1:05 PM, john darnell <[EMAIL PROTECTED]> wrote: The question is, what does the code want me returning as an id? Any object. The next obvious question is, of course, why not declare the method as returning an NSObject* - and the answer to that one is that, simply put, no

Re: What is an id?

2008-05-22 Thread Andrew Merenbach
Hi, John, There have been discussions on this list in the past, some of which might (or might not!) be helpful. Some, IIRC, lapsed into debate as to whether the "id" concept (a) was a bad idea, (b) was useless, (c) was confusing, or (d) made things difficult. Basically, "id" isn't exact

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Andy Lee
On May 22, 2008, at 12:17 PM, Sherm Pendley wrote: On Thu, May 22, 2008 at 12:02 PM, Andy Lee <[EMAIL PROTECTED]> wrote: The vast majority of this thread, if not all of it, has been about people struggling to understand the frameworks as they are. We're talking subjective impressions here, s

Re: What is an id?

2008-05-22 Thread Andrew Merenbach
Not that I want to respond to myself, but I want to correct: You'll "get a warning" if an action call is not implemented by NSObject. Sorry for the confusion! Also, I want to state that I do feel that id is a very useful thing, despite how my first paragraph below makes it sound. But that's

Re: What is an id?

2008-05-22 Thread Jens Alfke
On 22 May '08, at 10:11 AM, j o a r wrote: It expects you to return an object that will be used by the cells in your table view to display their respective value. To be specific, the value you return is passed to the cell's - setObjectValue: method. So you should return a value that's app

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Hamish Allan
On Thu, May 22, 2008 at 5:02 PM, Andy Lee <[EMAIL PROTECTED]> wrote: > I think we have a disconnect as to what you meant by "lowering the barriers" > -- hence my reference to that particular phrase. I'd like to point out that the "barrier" to which my post referred to was that of *commitment* to

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Andy Lee
On May 22, 2008, at 12:39 PM, Jeff LaMarche wrote: On May 22, 2008, at 12:02 PM, Andy Lee wrote: Most of this thread, if not all, has NOT been about people failing to read the HIG. I did not mention the HIG on purpose. Although I suggest reading it, consistency goes far beyond conforming yo

NSString vs NSPathStore2

2008-05-22 Thread andrew
Hi, I am then trying to populate an NSTableView with a filename obtained from a NSOpenPanel. The problem is that NSOpenPanel seems to return a NSPathStore2 and not an NSString, which seems to be causing problems. Is there are a way to convert NSPathStore2 to an NSString? Thanks, Andrew _

Re: Newbie query re default buttons

2008-05-22 Thread Michael McLaughlin
>Robert Cerny wrote: >Just FYI, >[myButton setKeyEquivalent:@"\r"]; is the correct way to set button to >Default. Are you sure that speakButton is not nil? The button is OK. I found that I could get the button to work by entering the Return key equivalent in IB, stubbing out awakeFromNib. Howev

  1   2   >