RE: UIEvent timestamp clarification

2011-01-16 Thread Andrew Coad
Apologies, I didn't see Matt's reply despite searching several times. Problem solved, thanks. Andrew Coad > Date: Sun, 16 Jan 2011 19:36:39 -0800 > Subject: Re: UIEvent timestamp clarification > From: kyle.slu...@gmail.com > To: andrewc...@hotmail.com > CC: cocoa-dev@lists.apple.com > > On S

Re: “EXC_BAD_ACCESS” object is not nil but not accessible

2011-01-16 Thread Marco Frisan
Il giorno 17/gen/2011, alle ore 04.04, Kyle Sluder ha scritto: > On Sun, Jan 16, 2011 at 4:48 PM, Marco Frisan wrote: >> Yes I know that. The problem is that I am was not able to find which >> pointer. And the reason I am not able to find it is that the line that cause >> the application block

Re: “EXC_BAD_ACCESS” object is not nil but not accessible

2011-01-16 Thread Ken Thomases
On Jan 16, 2011, at 10:37 PM, Marco Frisan wrote: > I verified with Instruments - Leaks the version available on the provided > link (since I modified my local copy) and the result is that I have no memory > leak. A leak is when something is under-released. The most likely culprit in your cas

Re: “EXC_BAD_ACCESS” object is not nil but not accessible

2011-01-16 Thread Marco Frisan
Il giorno 17/gen/2011, alle ore 03.02, William Squires ha scritto: > I'd have a look at your object allocations/deallocations with Instruments - > this sort of cr*p usually means you over-released something, or you forgot to > retain it. Remember that containers have no way of knowing if you >

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Luke Hiesterman
Delayed performance is not appropriate for something like this, because that fact that your view was just loaded is not a guarantee that it's about to be added to the view hierarchy. Delayed performance should not be used as a haphazard crutch because it seems to make a given problem go away. It

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread G S
> Or just use delayed performance. I use delayed performance a *lot*. Like > whipped cream, it covers a multitude of sins. m. Hm, I'll have to remember that. Whipped cream on my misdeeds, that is. Meanwhile, the viewDidAppear method does work; but it gets into an endless loop because when you d

Re: UIEvent timestamp clarification

2011-01-16 Thread Kyle Sluder
On Sun, Jan 16, 2011 at 7:30 PM, Andrew Coad wrote: > > Does anyone have a view on this? Did you read Matt's reply? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

RE: UIEvent timestamp clarification

2011-01-16 Thread Andrew Coad
Does anyone have a view on this? Andrew Coad > From: andrewc...@hotmail.com > To: cocoa-dev@lists.apple.com > Date: Wed, 12 Jan 2011 18:36:56 -0500 > Subject: UIEvent timestamp clarification > > > Reading through the docs, the approximate flow from a user touching an > interface component (

Re: Question about split view

2011-01-16 Thread Kyle Sluder
On Sun, Jan 16, 2011 at 6:44 PM, Matt Neuburg wrote: > I've had similar problems with a UINavigationController on iPhone where if > there's a memory warning while the root view is hidden and the app is in the > background the nav bar stack is messed up when we resume the app. My solution > is t

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Kyle Sluder
On Sun, Jan 16, 2011 at 5:43 PM, Ken Ferry wrote: > Poor change management in what sense?  If the file is not intended for 3rd > party use, then how is it wrong to change it?  Do you worry about changing > your file formats?  It is really not possible for you to be aware of what > might cause that

Re: “EXC_BAD_ACCESS” object is not nil but not accessible

2011-01-16 Thread Kyle Sluder
On Sun, Jan 16, 2011 at 4:48 PM, Marco Frisan wrote: > Yes I know that. The problem is that I am was not able to find which pointer. > And the reason I am not able to find it is that the line that cause the > application block is: > > NSDictionary * attributes = _record.attributes; > > inside th

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Matt Neuburg
On Fri, 14 Jan 2011 19:10:03 +0100, Gabriel Zachmann said: >My question is: can I get a scripting bridge handle on iPhoto without making >iPhoto launch? Scripting Bridge is about sending Apple events to an application. That application must be running or you can't send it Apple events. That is

Re: NSSegmentedControl Label

2011-01-16 Thread Matt Neuburg
On Fri, 14 Jan 2011 18:57:00 -0700, koko said: >Ouch! > >Some of us need to lighten up Some of us need to ask questions properly. You explicitly said, "Is there a recommended manner to accomplish this?". I told you where to find the recommended use of NSSegmentedControl. Then in a later note y

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Matt Neuburg
On Sun, 16 Jan 2011 13:47:06 -0800, G S said: >On Sun, Jan 16, 2011 at 11:47 AM, Luke Hiesterman wrote: >> viewDidLoad is called the first time the view property of the vc is accessed >> - that's when loading happens. There is no guarantee that the view is in a >> window at that time, and prese

Re: Question about split view

2011-01-16 Thread Matt Neuburg
On Sun, 16 Jan 2011 18:35:45 -0500, Phillip Mills said: >I see a problem with the following scenario: >1) Start with the template project for a split view >2) Add a function where a modal view can be shown over it using a style of >UIModalPresentationFullScreen >3) Run in portrait mode >4) While

Printing Appears Very Small in Lower-Left Corner of Page

2011-01-16 Thread Gerry Beggs
I've been having a problem with my application sometimes (but not always) printing the full page, but it appears VERY small in the lower-left corner of the page. I was having trouble reproducing it, but finally received a sample document from one of my users that let me reproduce it. Still, som

Re: keyDown event processing -- harder than it looks?

2011-01-16 Thread Michael Crawford
Solved. I have an NSTableView, which is intercepting keystrokes in order to support type-select functionality. The solution, in my case was to add the NSTableView delegate method: – tableView:shouldTypeSelectForEvent:withCurrentSearchString: And put the keyboard handling code I need in that m

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Ken Ferry
On Sun, Jan 16, 2011 at 4:53 PM, Graham Cox wrote: > > On 17/01/2011, at 10:20 AM, Ken Ferry wrote: > > > Apple is certainly able to do a dot rev of all the iLife apps > simultaneously. > > > But they cannot guarantee that a user would upgrade them all > simultaneously, and seems unlikely they'd

Core Data Migration Error

2011-01-16 Thread Michael Link
I keep getting this error when trying to migrate a sql store: -[Document configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:] Error NSCocoaErrorDomain 134110 { NSUnderlyingException = "I/O error for database at /Users/mlink/Desktop/Untitled.db.new. SQLit

Thanks!

2011-01-16 Thread William Squires
Thanks to all who responded to my query about png icons - Turns out that with a redesign, I don't need the UITabBar anymore... ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

NSPredicates vs 'NSMutableArray's of 'NSMutableDictionary's

2011-01-16 Thread William Squires
Okay, I've finally figured out how to get a UISearchBar into my iPhone app (a custom phone book for my company's internal use). Here's what I have Model: NSMutableArray (read from a .plist file in the bundle, then written out (1st time) to application's documents directory. Represents the list o

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Graham Cox
On 17/01/2011, at 10:20 AM, Ken Ferry wrote: > Apple is certainly able to do a dot rev of all the iLife apps simultaneously. But they cannot guarantee that a user would upgrade them all simultaneously, and seems unlikely they'd accept a situation where upgrading one would break all the other

Re: “EXC_BAD_ACCESS” object is not nil but not accessible

2011-01-16 Thread Marco Frisan
Il giorno 16/gen/2011, alle ore 19.06, Kyle Sluder ha scritto: > On Jan 15, 2011, at 3:55 AM, Marco Frisan wrote: > >> I don't understand why _record.attributes causes a “EXC_BAD_ACCESS” signal. > > This is the defining characteristic of a memory management bug: you have a > pointer to an obje

Re: Parental Controls altering binary

2011-01-16 Thread Dave Keck
>From TN2206 >(http://developer.apple.com/library/mac/#technotes/tn2007/tn2206.html): The Parental Controls, MCX, and Application Firewall subsystems in Leopard, when encountering an unsigned program, will ad hoc sign the program in order to track its identity from launch to launch. This will

Re: data over USB to iPhone

2011-01-16 Thread Aaron Burghardt
Libimobiledevice is an open source project to replicate most of iTunes' functionality for managing devices. It has a lot of dependencies on other open source projects, though, so it takes some patience to build it: http://www.libimobiledevice.org/ usbmuxd is a small intermediary that m

Parental Controls altering binary

2011-01-16 Thread Trygve Inda
When our app (actually a System Pref Pane) is run on a non-Admin account with Parental Controls, it seems the binary is getting modified which causes a checksum problem for verification of updates etc. Has anyone else seen this? Trygve ___ Cocoa-dev

iOS: Question about split view

2011-01-16 Thread Phillip Mills
I see a problem with the following scenario: 1) Start with the template project for a split view 2) Add a function where a modal view can be shown over it using a style of UIModalPresentationFullScreen 3) Run in portrait mode 4) While the modal view is being shown, trigger a memory warning 5) Dism

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Ken Ferry
My point was really that a developer should at the least be aware if he's using a hack. Unless this is a published interface, it's a hack that might break. Apple is certainly able to do a dot rev of all the iLife apps simultaneously. -Ken On Jan 16, 2011, at 1:48 PM, Graham Cox wrote: > I us

Re: data over USB to iPhone

2011-01-16 Thread Georg Seifert
Thanks for all the answers. Only to clarify. I don’t want to communicate from the iPhone to some device but from the mac to the iPhone (as a divice). I did find some mentions of usbmuxd, and that it allows communication over USB. Does anyone know how to use it? Best Georg Am 14.01.2011 um 14:3

Re: sending data to a view not yet displayed

2011-01-16 Thread Greg Guerin
Shane wrote: So I guess my question is, how do I make sure my view is able to receive the data I want sent to it before it is ever displayed. I hope that makes sense. Send the data to a Model, not a View. If the View and Model are the same object, then the only way to have a Model is to ha

Re: Core Image increases memory use a lot

2011-01-16 Thread Nick Zitzmann
On Jan 16, 2011, at 2:43 PM, Graham Cox wrote: > Who complains about a 30MB memory usage increase these days? Who even > notices? This is not Mac OS 9, it doesn't matter what your app's memory > footprint is (within reason). Two kinds of people: 1. Experienced users that watch Activity Monito

Re: Core Image increases memory use a lot

2011-01-16 Thread Seth Willits
On Jan 16, 2011, at 1:43 PM, Graham Cox wrote: >> It's not like I'm leaking any memory here, so why the large permanent >> increase? I'd like to avoid it if I can because I'm getting criticized for >> "using too much memory" despite it not being my fault. :-p > > > Who complains about a 30MB m

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Graham Cox
I used parts of the iMedia browser (the objects that retrieve the images from the iPhoto database) in an app that has been accepted on the App Store. While I guess that the layout of the iPhoto database on disk could change, all the iApps access it so if it changed they'd have to all be revved a

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread G S
On Sun, Jan 16, 2011 at 11:47 AM, Luke Hiesterman wrote: > viewDidLoad is called the first time the view property of the vc is accessed > - that's when loading happens. There is no guarantee that the view is in a > window at that time, and presenting a modal vc on a vc whose view is not in a >

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Gustavo Pizano
On Jan 16, 2011, at 8:47 PM, Luke Hiesterman wrote: > viewDidLoad is called the first time the view property of the vc is accessed > - that's when loading happens. There is no guarantee that the view is in a > window at that time, and presenting a modal vc on a vc whose view is not in a > wind

Re: Core Image increases memory use a lot

2011-01-16 Thread Graham Cox
On 16/01/2011, at 8:03 PM, Seth Willits wrote: > It's not like I'm leaking any memory here, so why the large permanent > increase? I'd like to avoid it if I can because I'm getting criticized for > "using too much memory" despite it not being my fault. :-p > Who complains about a 30MB memory

Re: Core Image increases memory use a lot

2011-01-16 Thread Seth Willits
That's not applicable here. I'm not drawing many many things before returning to run loop so my memory usage isn't increasing due to repeated calls. It's just this single image. Just for giggles I tried it anyway, and as expected there's no difference at all. -- Seth Willits On Jan 16

Re: iPhoto "external editor"

2011-01-16 Thread Fritz Anderson
On 13 Jan 2011, at 7:06 PM, Greg Kennedy wrote: > So my first problem is, how does iPhoto actually fire up an external editor > and pass the image or filename that it is interested in editing? I'm sure it uses Launch Services.

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Luke Hiesterman
viewDidLoad is called the first time the view property of the vc is accessed - that's when loading happens. There is no guarantee that the view is in a window at that time, and presenting a modal vc on a vc whose view is not in a window does not make sense. Perhaps viewDidAppear is what you were

Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread G S
Hi all. The Apple doc says this is possible, but it doesn't work when you want the second modal view controller presented immediately. If you present a modal view controller that immediately presents another one in its viewDidLoad method, the second one never shows up. No errors are reported, so

Re: “EXC_BAD_ACCESS” object is not nil but not accessible

2011-01-16 Thread Kyle Sluder
On Jan 15, 2011, at 3:55 AM, Marco Frisan wrote: > I don't understand why _record.attributes causes a “EXC_BAD_ACCESS” signal. This is the defining characteristic of a memory management bug: you have a pointer to an object that has since been freed. Trying to use that pointer is an error. --K

“EXC_BAD_ACCESS” object is not nil but not accessible

2011-01-16 Thread Marco Frisan
Hello all, and thanks in advance for any help. I am making a test application to play with files informations. The Xcode project file can be downloaded here VolumeList.zip (http://endercg.altervista.org/files/VolumeList.zip) The application gets all the removable media volumes paths currently

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Ken Ferry
The project page does not make it clear whether or not that is a hack. Is that supported, or, for example, would you get rejected from the mac app store for depending on stuff that changes between OS versions? -Ken On Sun, Jan 16, 2011 at 4:07 AM, Mike Abdullah wrote: > Use the iMedia Browser t

Re: Core Image increases memory use a lot

2011-01-16 Thread Jeff Johnson
Hi Seth. You might want to try putting an autorelease pool around your method. See the "Tip" in this document: https://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/CoreImaging/ci_tasks/ci_tasks.html%23//apple_ref/doc/uid/TP30001185-CH203-TPXREF101 I've used this tip

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Mike Abdullah
Use the iMedia Browser to parse the library without launching iPhoto. http://code.google.com/p/imedia/ On 14 Jan 2011, at 18:10, Gabriel Zachmann wrote: > My question is: can I get a scripting bridge handle on iPhoto without making > iPhoto launch? > And can I retrieve a list of iPhoto albums an

Core Image increases memory use a lot

2011-01-16 Thread Seth Willits
I have a CALayer subclass and I'm drawing into it using Core Image. I'm taking a CGImage, blurring, and adding a darkened radial gradient on top of it. Pretty simple. Now the weird thing is, using Core Image for drawing this image (instead of just drawing with no effects using CGContextDrawIma