Re: CoreData warning: File.children -- to-many relationship does not have an inverse:

2010-08-04 Thread Quincey Morris
On Aug 3, 2010, at 22:32, Ignacio Enriquez wrote: > "Child" entity has: > one to many "children" relationship with itself. > one to one "parentChild" relationship with itself. > one to one "parentFile" relationship with "File" entity. > > "File" entity has > one to many "children relationship wit

Re: iOS: UITableViewCell an textlabel?

2010-08-04 Thread sebi
Hello, to whom it may concern, the problem was that I overrode layoutSubviews without calling super. this way it works: - (void)layoutSubviews { [super layoutSubviews]; CGRect r; //set rect self.textLabel.frame = r; self.textLabel.text = @"xxx"; } regards

Re: iOS: UITableViewCell an textlabel?

2010-08-04 Thread sebi
hello, thanks for your reply. I planned it to do like you suggested, but it seems to work with the built-in label when I make sure to call super in layoutSubviews. would you still recommend to use my own label? thanks and regards, sebastian mecklenburg On 04.08.2010, at 03:40, Bill Garrison wr

UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread sebi
Hello again, why is it that when I set the content mode of an UIImageView to UIViewContentModeBottomLeft I cant change it's size anymore? this is what I do: self.imageView.image = theImage; self.imageView.contentMode = UIViewContentModeBottomLeft; self.imageView.frame =

Re: Need help understanding first responder and multiple nibs

2010-08-04 Thread julius
> . But my whole point > was to understand how the responder chain works in a document-based > application > across different nibs -- which wasn't clear to me from the docs or the > archives. > > Jason Hi Jason, Recently I too had been having difficulties understanding the responder chain

Re: Detecting a remote volume

2010-08-04 Thread Mark Fleming
Date: Mon, 2 Aug 2010 21:26:36 +0200 From: Knut Lorenzen Subject: Detecting a remote volume To: Cocoa-Dev Message-ID: <73f46a22-6b5d-4810-83ff-1c381a129...@macdisk.de> Content-Type: text/plain; charset=us-ascii Dear List, my app should copy a few files to a remote (afp://) volume, hence it

Re: Detecting a remote volume

2010-08-04 Thread Knut Lorenzen
Am 04.08.2010 um 15:10 schrieb Mark Fleming: > Here is what I use for: > - detecting WebDAV Volumes... can change the -t to afp to list AFP volumes. > - for mounting and unmounting WebDAV volumes. <...> Thanks Mark. I have found an even easier way to reach my goal: NSWorkspace *workspace = [NS

confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard

2010-08-04 Thread Vera Tkachenko
Hello, in my application I need to obtain system cache directory (not ~/Library/Caches). To perform this I use code "borrowed" from WebKit (that why I think it's correct :) ) char cacheDirectory[MAXPATHLEN]; size_t cacheDirectoryLen = confstr(_CS_DARWIN_USER_CACHE_DIR, cacheDirectory, MAXPATHL

Importing to core data persistent document

2010-08-04 Thread Gideon King
Hi, I'm having trouble importing into my application using Core Data. I have an NSAtomicStore based storage system. I can open and save my own files, but when someone wants to import from another format, I want to load the file and set the file name to nil so that I can save it as my own file ty

Re: confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard

2010-08-04 Thread Fritz Anderson
On 4 Aug 2010, at 9:49 AM, Vera Tkachenko wrote: > in my application I need to obtain system cache directory (not > ~/Library/Caches). To perform this I use code "borrowed" from WebKit (that > why I think it's correct :) ) Don't do that. Use NSSearchPathForDirectoriesInDomains() with the direct

NSHTTPCookieStorage

2010-08-04 Thread Mr. Gecko
Hello, I wrote a custom NSHTTPCookieStorage and I really need help with it as it seems to be crashing the program on some people's computers and I know why. It's because I do not have access to OpaqueCFHTTPCookieStorage functions/methods to create my own reference for it. I need this to happen a

Re: How to delete read only files in LaunchAgent folder

2010-08-04 Thread Jerry Krinock
On 2010 Aug 03, at 19:40, Nick Zitzmann wrote: >> How will i delete the read only file programatically? > > Search ADC for the "BetterAuthorizationSample" sample project. You're going > to have to use Authorization Services to perform the tasks your app can't due > to permissions. which is q

Re: How troubleshoot when Managed Object disappears from Store?

2010-08-04 Thread Jerry Krinock
Ah, so the problem in my understanding is that I've been conflating "file type" and "document type". Quincey, thank you also for the "bonus" explanation of compatibility between UTI and "Display Name". On 2010 Aug 02, at 20:57, Quincey Morris wrote: >> WHY DID THE OBJECT DISAPPEAR? > > I d

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread David Duncan
On Aug 4, 2010, at 2:31 AM, sebi wrote: > why is it that when I set the content mode of an UIImageView to > UIViewContentModeBottomLeft I cant change it's size anymore? You can (and are) changing its size. However, if the content mode is not one of the resize modes, then the image is always dr

Re: CoreData warning: File.children -- to-many relationship does not have an inverse:

2010-08-04 Thread Ignacio Enriquez
Thank you Quincey! I think I got the right way this time, But I would appreciate one last explanation. First: This is what I did: "Child" entity relationships: Child.children ->> Child and its inverse : parentChild #1 Child.parentChild ->>Child and its inverse : children#2 Child.parentFile

Need help understanding first responder and multiple nibs

2010-08-04 Thread Jason Bruce
Hi Quincy, My app is a presentation app for presenting trial exhibits in a court room. The main window of the app would consist of a tab view w/an NSTableView on one tab and an IKImageBrowserView on the second tab -- both bound to the same nsarraycontroller. The filter window would be for ea

Re: iOS: UITableViewCell an textlabel?

2010-08-04 Thread Steve Christensen
It's actually cleaner to create your custom views in the designated initializer, as Bill showed below. The only thing missing is that if you correctly set the custom view's autoresizingMask property, the view will resize as the cell resizes, rather than you needing to manually change it in -lay

Re: Drag'n Drop Mail.app message to Cocoa app

2010-08-04 Thread John Ackert
any ideas? ~John On Jul 22, 2010, at 7:04 PM, John Ackert wrote: > Hi, > > how can I accept a dragged message from Mail.app into a NSTableView and how > can I read the message's content? > I receive the message URL in form of message: when I use > NSURLPboardType as in the following example.

Re: Need help understanding first responder and multiple nibs

2010-08-04 Thread Quincey Morris
On Aug 4, 2010, at 11:02, Jason Bruce wrote: > My app is a presentation app for presenting trial exhibits in a court room. > The > main window of the app would consist of a tab view w/an NSTableView on one > tab > and an IKImageBrowserView on the second tab -- both bound to the same > nsarra

Re: CoreData warning: File.children -- to-many relationship does not have an inverse:

2010-08-04 Thread Quincey Morris
On Aug 4, 2010, at 10:50, Ignacio Enriquez wrote: > "Child" entity relationships: > Child.children ->> Child and its inverse : parentChild #1 > Child.parentChild ->>Child and its inverse : children#2 > Child.parentFile ->> File and its inverse: children#3 > > "File" entity relations

SecIdentity from Certificate

2010-08-04 Thread Apparao Mulpuri
Hi Friends, In my Cocoa app, I am trying to construct SecIndentity from the certificate with extension .p12 as mentioned in http://developer.apple.com/mac/library/documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html, but unfortunately kSecImportExportPassphrase, k

Re: Drag'n Drop Mail.app message to Cocoa app

2010-08-04 Thread Mark Ritchie
Hey! On 4/Aug/2010, at 2:35 PM, John Ackert wrote: > any ideas? I would think that the contents of a mail message might be something that Mail.app wants to keep for itself! ;-) I observe that TextEdit.app accepts the drop and creates a nice URL which goes back to Mail.app. The example app Pa

Re: Drag'n Drop Mail.app message to Cocoa app

2010-08-04 Thread Laurent Daudelin
On Aug 4, 2010, at 15:32, Mark Ritchie wrote: > Hey! > > On 4/Aug/2010, at 2:35 PM, John Ackert wrote: >> any ideas? > > I would think that the contents of a mail message might be something that > Mail.app wants to keep for itself! ;-) I observe that TextEdit.app accepts > the drop and create

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread Jonathon Kuo
On Aug 4, 2010, at 9:43 AM, David Duncan wrote: > A UIView (really the CALayer owned by the view) can and will display content > larger than its bounds if given to it. Is there a way to restrict this behavior, i.e., to make it that the UIView does not display content beyond its bounds? I'm dea

Re: SecIdentity from Certificate

2010-08-04 Thread Wim Lewis
On Aug 4, 2010, at 3:23 PM, Apparao Mulpuri wrote: > I am trying to construct SecIndentity from the certificate with extension > .p12 as mentioned in > http://developer.apple.com/mac/library/documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html, > but unfortunat

Getting a list of web browsers

2010-08-04 Thread Mike Manzano
How would one go about getting a list of web browsers on the system? I'd like to implement a pull down menu similar to Safari's "Default web browser:" field. Thanks, Mike @instantvoodoo___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Getting a list of web browsers

2010-08-04 Thread Nick Zitzmann
On Aug 4, 2010, at 6:24 PM, Mike Manzano wrote: > How would one go about getting a list of web browsers on the system? I'd like > to implement a pull down menu similar to Safari's "Default web browser:" > field. I think you can get started by looking at the documentation for the LSCopyApplica

Re: Getting a list of web browsers

2010-08-04 Thread Ken Thomases
On Aug 4, 2010, at 7:31 PM, Nick Zitzmann wrote: > On Aug 4, 2010, at 6:24 PM, Mike Manzano wrote: > >> How would one go about getting a list of web browsers on the system? I'd >> like to implement a pull down menu similar to Safari's "Default web >> browser:" field. > > I think you can get st

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread David Duncan
On Aug 4, 2010, at 4:46 PM, Jonathon Kuo wrote: > On Aug 4, 2010, at 9:43 AM, David Duncan wrote: > >> A UIView (really the CALayer owned by the view) can and will display content >> larger than its bounds if given to it. > > Is there a way to restrict this behavior, i.e., to make it that the U

Re: Drag'n Drop Mail.app message to Cocoa app

2010-08-04 Thread Andy Lee
On Aug 4, 2010, at 6:32 PM, Mark Ritchie wrote: > I would think that the contents of a mail message might be something that > Mail.app wants to keep for itself! ;-) I observe that TextEdit.app accepts > the drop and creates a nice URL which goes back to Mail.app. The example app > PasteboardPe

Re: Importing to core data persistent document

2010-08-04 Thread Gideon King
I think maybe my explanation could be clearer. Here's the flow: 1. User initiates import of file of type "fred" 2. I pick that up in -readFromURL:ofType:error:, and spawn a process which converts files of type "fred" to type "myfiletype", the native file type of the application. Let's say that i

Re: Importing to core data persistent document

2010-08-04 Thread Kyle Sluder
On Aug 4, 2010, at 7:48 PM, Gideon King wrote: > I think maybe my explanation could be clearer. Here's the flow: > > 1. User initiates import of file of type "fred" > 2. I pick that up in -readFromURL:ofType:error:, and spawn a process which > converts files of type "fred" to type "myfiletype",

Re: Importing to core data persistent document

2010-08-04 Thread Quincey Morris
On Aug 4, 2010, at 19:48, Gideon King wrote: > 1. User initiates import of file of type "fred" > 2. I pick that up in -readFromURL:ofType:error:, and spawn a process which > converts files of type "fred" to type "myfiletype", the native file type of > the application. Let's say that it is stored

Re: Importing to core data persistent document

2010-08-04 Thread Quincey Morris
On Aug 4, 2010, at 20:18, Quincey Morris wrote: > On Aug 4, 2010, at 19:48, Gideon King wrote: > >> 1. User initiates import of file of type "fred" >> 2. I pick that up in -readFromURL:ofType:error:, and spawn a process which >> converts files of type "fred" to type "myfiletype", the native file

Re: Importing to core data persistent document

2010-08-04 Thread Gideon King
Yes, I did think of putting it elsewhere, but I would have thought the problem would be the same. Say I overrode the NSDocumentController openDocumentWidhContentsOfURL:ofType:error: and had that do the conversion to my native document type, then call the NSDocumentController implementation, it

Re: Importing to core data persistent document

2010-08-04 Thread Gideon King
Answers: 1. It could come from a File/Open, or them opening that file from the Finder, or from a File/Import command (the import one just calls the document controller's openDocumentWithContentsOfURL:display:error anyway, so they all go through the same mechanism) 2. The file needing conversion

Re: Importing to core data persistent document

2010-08-04 Thread Quincey Morris
On Aug 4, 2010, at 19:48, Gideon King wrote: > 1. User initiates import of file of type "fred" > 2. I pick that up in -readFromURL:ofType:error:, and spawn a process which > converts files of type "fred" to type "myfiletype", the native file type of > the application. Let's say that it is stored

Re: Importing to core data persistent document

2010-08-04 Thread Gideon King
Thanks Quincey - of course I can do exactly what you say - pick up the fact that they are importing right at the start, ask them where they want the converted file, put it there and open it. Simple and foolproof. Sometimes I can't see the wood for the trees! setFileURL:nil always worked before,

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread sebi
On 05.08.2010, at 02:41, David Duncan wrote: > On Aug 4, 2010, at 4:46 PM, Jonathon Kuo wrote: > >> On Aug 4, 2010, at 9:43 AM, David Duncan wrote: >> >>> A UIView (really the CALayer owned by the view) can and will display >>> content larger than its bounds if given to it. >> >> Is there a w

Re: [Q] Enter Key & HIG

2010-08-04 Thread Martin Wierschin
The HIG states: - Enter Most applications add information to a document as soon as the user enters it. In some cases, however, the application may need to wait until a whole collection of information is available before processing it. The Enter key tells the application that the user ha

Re: [Q] Enter Key & HIG

2010-08-04 Thread John Joyce
Please file a bug on the documentation. On Aug 5, 2010, at 1:29 AM, Martin Wierschin wrote: >> The HIG states: >> >> - >> Enter >> Most applications add information to a document as soon as the user enters >> it. In some cases, however, the application may need to wait until a whole >> col