managing split view iPad

2010-07-19 Thread Andrea Mattiuz
hi all, I can't manage the change of a navigation controller on the right side of a split view application (iPad) after a tap on the left side. The behavior of this app would be similar to the 'settings' app in the iPad simulator. any suggestions or examples would be very appreciated. Thanks! A

Reg: sending a URL request in a thread and receiving response in another thread

2010-07-19 Thread SridharRao M
Hi All, I have to download around 100 images from web by sending a each image URL in "Sender Thread" and receiving the response from another thread "Receiver Thread". Is there any possibility to download images in this way sequentially by using maximum band width of URL connection. Can any one

Re: Reg: sending a URL request in a thread and receiving response in another thread

2010-07-19 Thread Mike Abdullah
Why do you think you need to do this? And don't cross-post please. On 19 Jul 2010, at 09:58, SridharRao M wrote: > Hi All, > > I have to download around 100 images from web by sending a each image URL > in "Sender Thread" and receiving the response from another thread "Receiver > Thread". > >

Can we send url request from Thread1 and receive response from Thread2

2010-07-19 Thread Kalyanraju M
Hi All, My requirement is to send a url request from Thread1 and receive the response for that request for the different thread Thread2. Is this possible?Any one implemented this kind of behavior.If so please suggest me how we can achieve it. Regards, Kalyanraju

Re: Can we send url request from Thread1 and receive response from Thread2

2010-07-19 Thread Roland King
assuming that you and SridharRao M who posted almost the exact same question an hour before are both from Effigent and looking for the same thing, perhaps you could go back to that thread and reply to the question Mike Abdullah posted in his reply, instead of starting a new one. On 19-Jul-20

Re: Change size of NSMenuItem (offset from the top of status menu)

2010-07-19 Thread Graham Cox
On 19/07/2010, at 4:53 PM, Nava Carmon wrote: > The question is whether there is a way to cancel this offset? I've seen this question come up a few times in various guises. The answer is no; file bugs. --Graham ___ Cocoa-dev mailing list (Cocoa-de

Core Data conflict detection

2010-07-19 Thread Paulo Andrade
Hello, I'm trying to get my head around how Core Data handles optimistic locking failures but still haven't figured this out. This discussion is purely conceptual, I have no sample code to back my assumptions, its purpose is to clarify what should happen in various scenarios. Core Data uses sn

Re: Managing Files with CoreData

2010-07-19 Thread Keary Suska
On Jul 18, 2010, at 8:19 PM, Gordon Apple wrote: >>> My main entity has three references (one-to-one and one-to-many) to >>> identical entities defined as class "File" (a managed object). File is not >>> defined in the graphical model and is the only class (for the referenced >>> entities) define

Re: Where did the icon come from?

2010-07-19 Thread douglas welton
Eric, This isn't a unix tool... but, for applications and other bundles, have you tried getting the icons path from the bundle info using CFBundleIconFile key? I can imagine the code might look somthing like this: iconPath = [targetBundle objectForInfoDictionaryKey:CFBundleIconFile];

Re: Managing Files with CoreData

2010-07-19 Thread Gordon Apple
On 7/19/10 8:27 AM, "Keary Suska" wrote: > On Jul 18, 2010, at 8:19 PM, Gordon Apple wrote: > My main entity has three references (one-to-one and one-to-many) to identical entities defined as class "File" (a managed object). File is not defined in the graphical model and is th

First Responder

2010-07-19 Thread koko
I have subclass of NSMatrix that returns YES to -acceptsFirstResonder yet its -keyDown method is never called. Clearly I miss something, how about some light for me. -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Rick Mann
I have a basic NSDocument-based app with no window controllers. When the document's single window opens (as a result of a New or Open command), I want to open a drawer attached to it. But I don't immediately see in NSDocument how to know that the window has just opened. Where might be a good pla

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Kyle Sluder
On Mon, Jul 19, 2010 at 1:33 PM, Rick Mann wrote: > I have a basic NSDocument-based app with no window controllers. When the > document's single window opens (as a result of a New or Open command), I want > to open a drawer attached to it. But I don't immediately see in NSDocument > how to know

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Rick Mann
On Jul 19, 2010, at 14:24:17, Kyle Sluder wrote: > On Mon, Jul 19, 2010 at 1:33 PM, Rick Mann wrote: >> I have a basic NSDocument-based app with no window controllers. When the >> document's single window opens (as a result of a New or Open command), I >> want to open a drawer attached to it.

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Laurent Daudelin
On Jul 19, 2010, at 14:24, Kyle Sluder wrote: > On Mon, Jul 19, 2010 at 1:33 PM, Rick Mann wrote: >> I have a basic NSDocument-based app with no window controllers. When the >> document's single window opens (as a result of a New or Open command), I >> want to open a drawer attached to it. But

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Quincey Morris
On Jul 19, 2010, at 13:33, Rick Mann wrote: > I have a basic NSDocument-based app with no window controllers. There really isn't such a thing. A "basic" NSDocument object creates its own window controller behind the scenes (see the 'windowNibName' method). Conversely, a NSDocument object that y

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Rick Mann
On Jul 19, 2010, at 14:37:01, Quincey Morris wrote: > On Jul 19, 2010, at 13:33, Rick Mann wrote: > >> I have a basic NSDocument-based app with no window controllers. > > There really isn't such a thing. A "basic" NSDocument object creates its own > window controller behind the scenes (see the

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Rick Mann
On second though, I may stick to using drawers. I'm looking at the section on drawers in the HIG right now, and I don't see anything that suggests they're deprecated in any way. On Jul 19, 2010, at 14:37:01, Quincey Morris wrote: > On Jul 19, 2010, at 13:33, Rick Mann wrote: > >> I have a basi

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Quincey Morris
On Jul 19, 2010, at 14:50, Rick Mann wrote: > -windowDidLoad is called when the nib loads, but really I'm interested in > opening the drawer after window becomes visible. You mean you want to see the animation of the drawer sliding out? If you don't care (which I was assuming), then it would be

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Kyle Sluder
On Mon, Jul 19, 2010 at 2:33 PM, Laurent Daudelin wrote: > On Jul 19, 2010, at 14:24, Kyle Sluder wrote: > >> On Mon, Jul 19, 2010 at 1:33 PM, Rick Mann wrote: >>> I have a basic NSDocument-based app with no window controllers. When the >>> document's single window opens (as a result of a New or

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Rick Mann
On Jul 19, 2010, at 15:28:24, Kyle Sluder wrote: > On Mon, Jul 19, 2010 at 2:33 PM, Laurent Daudelin > wrote: >> On Jul 19, 2010, at 14:24, Kyle Sluder wrote: >> >>> On Mon, Jul 19, 2010 at 1:33 PM, Rick Mann wrote: I have a basic NSDocument-based app with no window controllers. When the

Re: Basic Q: Where is the best place to open a drawer?

2010-07-19 Thread Mike Abdullah
On 19 Jul 2010, at 23:30, Rick Mann wrote: > > On Jul 19, 2010, at 15:28:24, Kyle Sluder wrote: > >> On Mon, Jul 19, 2010 at 2:33 PM, Laurent Daudelin >> wrote: >>> On Jul 19, 2010, at 14:24, Kyle Sluder wrote: >>> On Mon, Jul 19, 2010 at 1:33 PM, Rick Mann wrote: > I have a basic N

Core Data caching very large property values in 10.6

2010-07-19 Thread Quincey Morris
I'm not sure if I can describe this problem clearly enough, but here goes ... I have a Core Data GC application that has been working fine under Leopard, but now crashes in a certain operation under Snow Leopard. It appears to be running out of memory (the 32-bit version produces a console error

Re: managing split view iPad

2010-07-19 Thread mmalc Crawford
On Jul 19, 2010, at 12:19 am, Andrea Mattiuz wrote: > I can't manage the change of a navigation controller on the right side of a > split view application (iPad) after a tap on the left side. > The behavior of this app would be similar to the 'settings' app in the iPad > simulator. > any sugges

Dynamically Updating Column Titles in NSTableView with Mouse Events

2010-07-19 Thread Peter Zegelin
I am trying to dynamically update the titles of my table columns to show the current row that the mouse is over. I am using an NSTrackingArea to get the mouseEnter, mouseMove and mouseExit events and then calling the following method ( in my delegate ) to update the column titles. Unfortunately

Re: Dynamically Updating Column Titles in NSTableView with Mouse Events

2010-07-19 Thread Graham Cox
On 20/07/2010, at 11:54 AM, Peter Zegelin wrote: > I've tried both the commented out methods at the end but no luck. Quartz > Debug shows no updating in the header area either. > > NOTE: The column headers do update if I set a breakpoint at [itsTableView > displayIfNeeded] or move the splitte

Re: Dynamically Updating Column Titles in NSTableView with Mouse Events

2010-07-19 Thread Jeff Gilbert
Hi Peter, On Jul 19, 2010, at 8:54 PM, Peter Zegelin wrote: > I am trying to dynamically update the titles of my table columns to show the > current row that the mouse is over. I am using an NSTrackingArea to get the > mouseEnter, mouseMove and mouseExit events and then calling the following >

Using XSLT functions with NSXMLDocument

2010-07-19 Thread Alec Stewart
Hello, I'm trying to transform a NSXML document using objectByApplyingXSLT. This is working okay as long as I don't use any XSLT functions in my xslt sheet. When I try to use the XSLT functions adjust-dateTime-to-timezone and dateTime in my XSLT sheet I get these errors at run time: mlXPathCom

Re: Dynamically Updating Column Titles in NSTableView with Mouse Events

2010-07-19 Thread Peter Zegelin
Wow that was quick! [[table headerView] setNeedsDisplay:YES]; works great. Thanks to Jeff and Graham for replying. On 20/07/2010, at 12:20 PM, Jeff Gilbert wrote: > Hi Peter, > > On Jul 19, 2010, at 8:54 PM, Peter Zegelin wrote: > >> I am trying to dynamically update the titles of my table

memory management of app delegate on iOS

2010-07-19 Thread Matt Neuburg
"Objects in the nib file are created with a retain count of 1 and then autoreleased... If you define outlets for nib-file objects, you should always define a setter method (or declared property) for accessing that outlet. Setter methods for outlets should retain their values." And indeed, if I loa

Re: memory management of app delegate on iOS

2010-07-19 Thread Kyle Sluder
On Mon, Jul 19, 2010 at 9:32 PM, Matt Neuburg wrote: > Yet the UIApplication object does NOT retain its delegate. So why doesn't > the app delegate vanish in a puff of smoke? Is the MainWindow nib subject to > different memory management rules? UIApplication might be retaining the top-level objec