autoresizingMask and transformation

2011-07-31 Thread Tales Pinheiro De Andrade
Hello, I have a custom view that have a square subview. The superview is stretched in both directions when the device is rotated. The subview has autoresizingMask=UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexib

Trying out Preferences example - Crashes

2011-07-31 Thread Jeroen Beckers
Hi, I'm trying out the Preference Pane example ( http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/PreferencePanes/Tasks/Sample.html#//apple_ref/doc/uid/2710-BABFCABJ) but it crashes. I can open the pane, but about 5 seconds after clicking the checkbox, System Pre

Re: core data migration - delete old store

2011-07-31 Thread Dave Fernandes
I just found a strange thing on Lion: the backup~ file doesn't get produced with in-place lightweight migration. The same binary *does* create the backup~ file on Snow Leopard, though. Has anyone else noticed this? On 2011-07-21, at 8:31 AM, Roland King wrote: > I suppose I had to get to core

Re: core data migration - delete old store

2011-07-31 Thread Jerry Krinock
On 2011 Jul 31, at 21:18, Dave Fernandes wrote: > I just found a strange thing on Lion: the backup~ file doesn't get produced > with in-place lightweight migration. The same binary *does* create the > backup~ file on Snow Leopard, though. Has anyone else noticed this? Have not noticed it becau

Re: Return causes EXC_BAD_ACCESS

2011-07-31 Thread Ron Hunsinger
On Jul 30, 2011, at 11:39 PM, vincent habchi wrote: >> Memory is "virtual", the addresses you appear to be working with are not >> real (i.e. they don't refer to the real address of the physical RAM >> underneath). Instead, a bit of hardware translates these to the real >> addresses as needed

Re: Return causes EXC_BAD_ACCESS

2011-07-31 Thread Ron Hunsinger
On Jul 31, 2011, at 12:27 AM, Ron Hunsinger wrote: > The point vincent was making was ... Sorry for the misattribution. I meant "The point Graham Cox and Scott Ribe were making was ...". ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Fwd: Ticker tape display

2011-07-31 Thread Barbara Steinman
Dr. Scott B. Steinman Sent from my iPad Begin forwarded message: > From: Barbara Steinman > Date: July 31, 2011 2:42:01 AM CDT > To: Graham Cox > Subject: Re: Ticker tape display > > Hi Graham, > > Thanks for your help. > > I did not consider a CATextLayer because its documentation seeme

Re: Return causes EXC_BAD_ACCESS

2011-07-31 Thread vincent habchi
Le 31 juil. 2011 à 09:27, Ron Hunsinger a écrit : > When a process forks, the child and parent get different virtual memory maps > that, for the time being, happen to point to the same physical memory pages. > The sharing is an implementation detail, for optimization. Conceptually, the > parent

How can I eliminate the delay between pressing a global shortcut and the reaction of the triggered background process?

2011-07-31 Thread Florian Pilz
I recently wrote a utility program called WindowTiler which moves around the currently focused window using global shortcuts. If I just started WindowTiler or used it recently everything is fine, but if the program idled for some time in the background the next call via a global shortcut will need

Re: Release build throw "unrecognized selector sent to instance" for a category method

2011-07-31 Thread Fritz Anderson
On 30 Jul 2011, at 10:58 PM, Bruno Berisso wrote: > In the library project I use several categories, one of them add some methods > to NSDate to move a date around (ej: 'moveDateToNextMonth'). For some reason > when set the build configuration to Release the calls '[date > moveDateToNextMonth]'

Re: Ticker tape display

2011-07-31 Thread Fritz Anderson
On 31 Jul 2011, at 2:43 AM, Barbara Steinman wrote: > I did not consider a CATextLayer because its documentation seemed to indicate > that very few, if any, animation effects could be applied to it aside from > changing the text. I'd like to change the transparency of the text, its > magnificat

Re: Fastest high-quality thumbnail display

2011-07-31 Thread Michael Babin
On Jul 30, 2011, at 9:10 PM, James Merkel wrote: > I tried ImageKit and it works great. Excellent quality. Thanks for the > suggestion, Scott. > I didn't have to do much more than change an NSImageView to an IKImageView in > InterfaceBuilder and the code. > > However, there doesn't appear to b

Dock Tile Plugin Problem

2011-07-31 Thread Roberto Mauro
I'm trying to add a Dock Tile PlugIn to my application but I can't figured out why it isn't working. - I've added a new Target to my project with Wrapper Extension as docktileplugin - I've added a Class that implements NSDockTilePlugIn with method -(void)setDockTile:(NSDockTile *)dockTile { [do

Re: Return causes EXC_BAD_ACCESS

2011-07-31 Thread Scott Ribe
On Jul 31, 2011, at 1:59 AM, vincent habchi wrote: > Thanks for these precisions. Actually, you’re right with fork (2), but vfork > (2), AFAIK, does not copy anything; note that I’m aware that vfork usually is > meant to be immediately followed by exec (3). No, fork copies the entire address sp

Re: Return causes EXC_BAD_ACCESS

2011-07-31 Thread Scott Ribe
On Jul 31, 2011, at 8:27 AM, Scott Ribe wrote: > No, fork copies the entire address space when it is called, but vfork works > as he described. In neither case will modifications to memory by one process > by visible by the other. Oh, hogwash. Of course copy-on-write is a common optimization to

Multithreaded Coredata save in Lion

2011-07-31 Thread Jim Thomason
Gang, I've encountered an odd bug/issue/feature(?) in Lion and want to know if there's a workaround available. I have a multithreaded CoreData application. It does a lot of calculations on the context, so it spawns off a separate thread and creates a new ManagedObjectContext to do its work. AFAIK

Re: Multithreaded Coredata save in Lion

2011-07-31 Thread Mike Abdullah
On 31 Jul 2011, at 16:58, Jim Thomason wrote: > Gang, > > I've encountered an odd bug/issue/feature(?) in Lion and want to know > if there's a workaround available. > > I have a multithreaded CoreData application. It does a lot of > calculations on the context, so it spawns off a separate threa

Re: Fastest high-quality thumbnail display

2011-07-31 Thread James Merkel
On Jul 31, 2011, at 4:32 AM, Michael Babin wrote: On Jul 30, 2011, at 9:10 PM, James Merkel wrote: I tried ImageKit and it works great. Excellent quality. Thanks for the suggestion, Scott. I didn't have to do much more than change an NSImageView to an IKImageView in InterfaceBuilder and t

Re: Multithreaded Coredata save in Lion

2011-07-31 Thread Quincey Morris
On Jul 31, 2011, at 08:58, Jim Thomason wrote: > I have a multithreaded CoreData application. It does a lot of > calculations on the context, so it spawns off a separate thread and > creates a new ManagedObjectContext to do its work. AFAIK, I'm > following proper Best Practices for multi-threaded

Re: How to implement Autosaving, Browsing Versions, Reverting to Last Saved in Lion?

2011-07-31 Thread Zorg
I solved this in my application by using the file wrapper methods fileWrapperOfType: error: and readFromFileWrapper: ofType: error: instead, which seem to work fine. -Zorg:-. On Jul 27, 2011, at 12:42 AM, Zorg wrote: > I've just realized I forgot to CC my message to the mailing list. > > On J

Unnecessary Boolean Warning

2011-07-31 Thread Gordon Apple
The following expression generates a warning message (³&&² within ³||²) and says to include the ³anded² expression in parens. Anybody who understands basic boolean operator precedence knows this is unnecessary. Bug report? BOOL isInUse = [super mediaIsInUse]; isInUse = isInUse || [self v

Re: Multithreaded Coredata save in Lion

2011-07-31 Thread Jerry Krinock
On 2011 Jul 31, at 11:29, Quincey Morris wrote: > The problem is that I can't think of any reason why it would be acceptable > for an application to save a document without the user's consent (it takes > away the user's ability to, at the very least, close the document *without* > saving chang

Re: Unnecessary Boolean Warning

2011-07-31 Thread Gordon Apple
Sorry, that should have been posted to Xcode. On 7/31/11 3:13 PM, "Gordon Apple" wrote: > The following expression generates a warning message (³&&² within ³||²) and > says to include the ³anded² expression in parens. Anybody who understands > basic boolean operator precedence knows this is unn

Re: Unnecessary Boolean Warning

2011-07-31 Thread Glenn L. Austin
On Jul 31, 2011, at 1:13 PM, Gordon Apple wrote: > The following expression generates a warning message (“&&” within “||”) and > says to include the “anded” expression in parens. Anybody who understands > basic boolean operator precedence knows this is unnecessary. Bug report? > >BOOL isI

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-31 Thread Jerry Krinock
On 2011 Jul 30, at 23:00, Jens Alfke wrote: > > On Jul 30, 2011, at 10:21 PM, Jerry Krinock wrote: > >> I don't think so, Jens. "They" is Apple. Apple has the source code for >> -initWithCoder: and -encodeWithCoder:. > > No they don’t — not for the implementations of those methods in our o

[iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
Xcode 3.2.6, iOS 4.3. My app shows a heartbeat as a flashing red square. Once each second, I execute the following code. If I use the block style, overall performance of the app suffers greatly (the UI becomes unresponsive to touches). If I animate the more traditional way, UI responsiveness se

Re: [iOS] Block animation kills performance

2011-07-31 Thread Hunter Hillegas
Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and animateWithDuration:delay:options:animations:completion:? On Jul 31, 2011, at 4:20 PM, Rick Mann wrote: > Xcode 3.2.6, iOS 4.3. > > My app shows a heartbeat as a flashing red square. Once each second, I > execute the fol

Custom autocompletion with NSTextField

2011-07-31 Thread Joe White
Hi all, I'm currently implementing custom autocomplete functionality into a NSTextField. I've managed so far to generate a list of my own available words and these show when escape is pressed. However, I'd like the autocompletion to automatically show as the user types. I'm using the delegate me

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: > Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and > animateWithDuration:delay:options:animations:completion:? No, I'm not sure :-) I've never worried about that option before, and don't know why it would be different

[Q] including omp.h?

2011-07-31 Thread JongAm Park
Hello, Because gcc now supports OpenMP, we can use pragmas for OpenMP without doing any special steps except for setting "Enable OpenMP" and "-fopenmp". However, when I tried to use OpenMP functions like : int omp_get_max_threads(void) omp.h should be included. However the location of omp.h is n

Re: [iOS] Block animation kills performance

2011-07-31 Thread Roland King
On Aug 1, 2011, at 7:32, Rick Mann wrote: > > On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: > >> Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and >> animateWithDuration:delay:options:animations:completion:? > > No, I'm not sure :-) I've never worried about th

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 17:04 , Roland King wrote: > On Aug 1, 2011, at 7:32, Rick Mann wrote: > >> >> On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: >> >>> Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and >>> animateWithDuration:delay:options:animations:completion:?

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 17:04 , Roland King wrote: > On Aug 1, 2011, at 7:32, Rick Mann wrote: > >> >> On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: >> >>> Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and >>> animateWithDuration:delay:options:animations:completion:?

Re: Custom autocompletion with NSTextField

2011-07-31 Thread Kyle Sluder
On Sun, Jul 31, 2011 at 4:29 PM, Joe White wrote: > Hi all, > > I'm currently implementing custom autocomplete functionality into a > NSTextField. I've managed so far to generate a list of my own available > words and these show when escape is pressed. > > However, I'd like the autocompletion to a

Debugging "CGImageCreate: invalid image provider: NULL"?

2011-07-31 Thread Izak van Langevelde
I get this error when using CGImageCreate to recreate an image from the bytes I previously got from the image. A quick comparison shows that the amount of bytes is the same, the bytes are the same, and the various parameters of CGImageCreate correspond to the original image, so I'm running out

OSX/iOS OpenID client library?

2011-07-31 Thread Devraj Mukherjee
Hi all, We are working on a project that has a server side component, which we would like host on Google's AppEngine and use OpenID to allow people to support authentication with existing accounts. Part of the plan is to build an iOS and hopefully a OSX client for the application as well. Googlin

Re: OSX/iOS OpenID client library?

2011-07-31 Thread Jens Alfke
On Jul 31, 2011, at 5:51 PM, Devraj Mukherjee wrote: > Question, is OpenID suited for native iOS apps? Any experiences in > implementing an OpenID client for a native iOS app or is this actually > difficult / impossible / unsuited to native apps? It seems feasible. You’ll probably have to do the

Re: Debugging "CGImageCreate: invalid image provider: NULL"?

2011-07-31 Thread Graham Cox
On 01/08/2011, at 10:44 AM, Izak van Langevelde wrote: > I get this error when using CGImageCreate to recreate an image from the bytes > I previously got from the image. A quick comparison shows that the amount of > bytes is the same, the bytes are the same, and the various parameters of > CG

Re: Unnecessary Boolean Warning

2011-07-31 Thread Graham Cox
On 01/08/2011, at 6:13 AM, Gordon Apple wrote: > Anybody who understands > basic boolean operator precedence knows this is unnecessary. True, but who does? I mean, sure, if everyone who ever sees your source has that fully committed to heart, you're golden. Otherwise, what's the harm of a few

Re: Debugging "CGImageCreate: invalid image provider: NULL"?

2011-07-31 Thread Izak van Langevelde
On 2011-07-31, at 9:11 PM, Graham Cox wrote: > > On 01/08/2011, at 10:44 AM, Izak van Langevelde wrote: > >> I get this error when using CGImageCreate to recreate an image from the >> bytes I previously got from the image. A quick comparison shows that the >> amount of bytes is the same, the

Re: Debugging "CGImageCreate: invalid image provider: NULL"?

2011-07-31 Thread Graham Cox
On 01/08/2011, at 11:25 AM, Izak van Langevelde wrote: >> Are you passing the bytes (or CFData) to the 'data provider' parameter? If >> so, that's wrong - you need to pass a CGDataProviderRef. Create one using >> CGDataProviderCreateWithData or CGDataProviderCreateWithCFData, depending on >> w

Re: Debugging "CGImageCreate: invalid image provider: NULL"?

2011-07-31 Thread Izak van Langevelde
On 2011-07-31, at 9:28 PM, Graham Cox wrote: > > On 01/08/2011, at 11:25 AM, Izak van Langevelde wrote: > >>> Are you passing the bytes (or CFData) to the 'data provider' parameter? If >>> so, that's wrong - you need to pass a CGDataProviderRef. Create one using >>> CGDataProviderCreateWithDa

Re: Ticker tape display

2011-07-31 Thread Barbara Steinman
The fault is mine. I misread the class reference as saying it inherited from NSObject alone. Thanks for pointing that out. I guess I need to get better glasses. Scott > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin