Rotated and scaled CALayer

2010-10-21 Thread Rimas M.
Hello list, I do not have a lot of practice with Core Animation, maybe that is the reason. I have a real annoying problem. All I want to do is: 1. Create CALayer 2. Set CGImage for its content 3. Depending on situation rotate and zoom in that layer (or its content) Looks like everything works,

Re: Rotated and scaled CALayer

2010-10-21 Thread Andreas Grosam
On Oct 21, 2010, at 10:56 AM, Rimas M. wrote: Hello list, I do not have a lot of practice with Core Animation, maybe that is the reason. I have a real annoying problem. All I want to do is: 1. Create CALayer 2. Set CGImage for its content 3. Depending on situation rotate and zoom in

Custom drawing in NSTokenField or replacement?

2010-10-21 Thread Ben Lachman
So in light or yesterday's announcement... I'm looking for a way to draw custom tokens in a NSTokenField subclass without using SPIs. The only way I've found so far is to class dump NSTokenAttachment/NSTokenAttachmentCell and then subclass them. Does anyone have ideas on how one might

Re: Core Data Sequence Problem

2010-10-21 Thread Dado Colussi
1. User removes the managed object from the existing document (using array controller), presses the close window button, changes are not saved. 2. Managed object is removed from the managed object context by the frameworks and is no longer reachable by any means that I am aware of.

kCFStreamPropertyFTPFileTransferOffset and Resuming FTP uploads

2010-10-21 Thread David Alter
Does anyone know if kCFStreamPropertyFTPFileTransferOffset is implemented? According to this conversation back in 2007 it is not http://lists.apple.com/archives/macnetworkprog/2007/Mar/msg00067.html I need to provide pause and resume support for FTP and FTPS uploads in a cocoa application. I have

Re: MPMoviePlayerViewController orientation

2010-10-21 Thread Rainer Standke
For whatever it's worth I have solved this problem. Or, rather, I have found another way to get the desired result. In the docs for MPMoviePlayerViewController it says: ... you can incorporate a movie player view controller wherever you would normally use a view controller. This is what I did

What causes CGEventTap to be automatically disabled?

2010-10-21 Thread eveningnick eveningnick
Hello i have an application that installs several active event taps (active - those that can modify and filter events) into another application. I activate them (CGEventTapEnable) and deactivate them only when my app quits. In some moments i find out (using application ET Testbench) that my

Re: What causes CGEventTap to be automatically disabled?

2010-10-21 Thread Bill Cheeseman
On Oct 21, 2010, at 3:31 PM, eveningnick eveningnick wrote: In some moments i find out (using application ET Testbench) that my active event tap is disabled (when i have not called CGDisableEventTap nowhere!). I am pretty sure, i am not calling CGEventTapEnable(myactivetap, NO) nowhere

malloc_error_break

2010-10-21 Thread koko
Not a Cocoa topic but I am thinking the smart guys here can show me the error of my ways. I do this: BYTE *destination = (BYTE*)malloc(size); ... do stuff free(destination); The free() gives this error malloc: *** error for object 0x21568580: Non-aligned pointer being freed (2) How

Re: malloc_error_break

2010-10-21 Thread David Duncan
On Oct 21, 2010, at 1:44 PM, k...@highrolls.net wrote: Not a Cocoa topic but I am thinking the smart guys here can show me the error of my ways. I do this: BYTE *destination = (BYTE*)malloc(size); ... do stuff free(destination); The free() gives this error malloc: *** error

Re: malloc_error_break

2010-10-21 Thread koko
On Oct 21, 2010, at 2:48 PM, David Duncan wrote: On Oct 21, 2010, at 1:44 PM, k...@highrolls.net wrote: Not a Cocoa topic but I am thinking the smart guys here can show me the error of my ways. I do this: BYTE *destination = (BYTE*)malloc(size); ... do stuff free(destination); The

Re: Custom drawing in NSTokenField or replacement?

2010-10-21 Thread Jerry Krinock
On 2010 Oct 21, at 11:22, Ben Lachman wrote: Alternatively, if there's a token field replacement out there floating around I'd love to hear about it. I've modified Robert Pointon's RPTagCloud to have more token-field features, and changed the name to RPTokenControl. There's still alot of

Remove icon animation

2010-10-21 Thread gMail.com
Hi, when you remove an icon from the Dock you get an animation fuff and a sound. Well, in some of my works I reproduced the same functionality, but I can't recall which project it was. I unsuccessfully searched on the web too. Nothing. I even recall that the sound was an OS resource. And the

Re: Remove icon animation

2010-10-21 Thread Gideon King
NSShowAnimationEffect(NSAnimationEffectPoof, [NSEvent mouseLocation], NSZeroSize, NULL, NULL, NULL); Gideon On 22/10/2010, at 8:43 AM, gMail.com wrote: Hi, when you remove an icon from the Dock you get an animation fuff and a sound. Well, in some of my works I reproduced the same

[NSImage] Bug in System Preferences?

2010-10-21 Thread Iceberg-Dev
I'm currently playing with a screen saver. Problem: It draws correctly in fullscreen mode or in SaverLab but does not in the preview mode of the 'Desktop Screen Saver' pane of the System Preferences. Basically, in #fail mode, it draws the first frame and then does not refresh.

Remove icon animation - Found

2010-10-21 Thread gMail.com
Forget. I have found it. I searched for the sound I recalled fuff and I found poof then I searched for animation poof and I found NSAnimationEffectPoof, then NSShowAnimationEffect(NSAnimationEffectPoof, [NSEvent mouseLocation], NSZeroSize, NULL, NULL, NULL); -- Leonardo

[NSArray filteredAraryUsingPredicate:] performance?

2010-10-21 Thread Abhi Beckert
Hi, I have this code: - (NSArray *)products { if (products) return products; NSPredicate *predicate = [NSPredicate predicateWithFormat:@visible = 1]; products = [[self.category.products allObjects] filteredArrayUsingPredicate:predicate];

Re: [NSArray filteredAraryUsingPredicate:] performance?

2010-10-21 Thread Graham Cox
On 22/10/2010, at 2:19 PM, Abhi Beckert wrote: in this case — don't need to worry about performance or memory consumption — as there won't ever be many products per category. How much does performance/memory suffer from using filteredArrayUsingPredicate? You state it doesn't matter, then

GestureRecognizer puzzle.

2010-10-21 Thread David Rowland
In my iPhone app I use beginTrackingWithTouch, etc. to handle a swipe and rotate an OpenGL object. I wanted to add pinch and rotate gestures to do the obvious things. I created a UIRotationGestureRecognizer and a UIPinchGestureRecognizer, added them to the control view and wrote the action

Re: [NSArray filteredAraryUsingPredicate:] performance?

2010-10-21 Thread Abhi Beckert
On 2010-10-22, at 1:32 PM, Graham Cox wrote: On 22/10/2010, at 2:19 PM, Abhi Beckert wrote: How much does performance/memory suffer from using filteredArrayUsingPredicate? You state it doesn't matter, then you worry that it might. With any question about optimisation, the question

how to stack two views vertically (and resize properly)

2010-10-21 Thread Wayne Shao
Hi, I have this layout: A container view C, with two sub-views in vertical order: a Box B on the top, and a WebView W at the bottom. Box B --- WebView W In IB, I set the following resize property: B: fixed top edge and fix height, take whole width of the parent W: fixed

Re: how to stack two views vertically (and resize properly)

2010-10-21 Thread Kyle Sluder
On Thu, Oct 21, 2010 at 10:10 PM, Wayne Shao wsha...@gmail.com wrote: Hi, I have this layout:   A container view C, with two sub-views in vertical order: a Box B on the top, and a WebView W at the bottom. Box B --- WebView W In IB, I set the following resize property: