Re: Why doesn't this crash?

2016-09-10 Thread Julian
Also worthy to note is that the +class method is implemented in a smart way and does more or less what objc_getClass does, and will never crash. It's the recommended general way to see if the class is available. (Jens correct me if I'm wrong, no doubt you know more here than I do!) On Sep 10, 2016

Universal Clipboard scope

2016-07-11 Thread Julian Hsiao
Hi, Does the new Universal Clipboard feature share all the standard pasteboards (NSGeneralPboard, NSRulerPboard, etc.)? What about private pasteboards created with pasteboardWithName:, pasteboardWithUniqueName:, etc. methods? Thanks. Julian Hsiao

Re: Layout-triggered animation

2014-04-23 Thread Julian
Based on your thought about setFrame: called multiple times, I do have some interesting news, though not a full resolution: setFrameSize was getting called repeatedly with the final size during the animation. I put logging in setFrame{Size,Origin}: in the view whose constraints are altered. Here's

Re: Layout-triggered animation

2014-04-21 Thread Julian
Ugh, forget the youtube video, it gets too resampled. Just download the file and watch it if yyou want. https://dl.dropboxusercontent.com/u/16749188/Animation%20jitter.mov On Mon, Apr 21, 2014 at 6:15 PM, Julian wrote: > Hi Jakob, thanks for the reply. I stopped checking the list every

Re: Layout-triggered animation

2014-04-21 Thread Julian
as a result of layout, as you can see. https://www.youtube.com/watch?v=Vi5tEMiMQZ0&feature=youtu.be I don't know why in the new recording, the jitter looks as bad on the expand as it does on the collapse - on my computer, the collapse is much worse. Some artifact of the quicktime capture? T

Layout-triggered animation

2014-04-14 Thread Julian
I'm animating frame changes from autolayout. Code to trigger the expand is shown here. I added QuartzCore.framework to my link libraries, and checked layer backing for the window's view. -(void) expand { [NSAnimationContext beginGrouping]; [[NSAnimationContext currentContext] setAllowsImpl

Re: NSBox line with autolayout

2014-04-11 Thread Julian
I just resolved it by checking 'Autoresizes Subviews' on the NSBox itself in the nib. For some reason, that triggers the behavior I'm looking for in my situation. I'm not sure why it's not needed in other circumstances, though. On Fri, Apr 11, 2014 at 2:45 PM, Julian

Re: NSBox line with autolayout

2014-04-11 Thread Julian
rView attribute:NSLayoutAttributeRight multiplier:1.0 constant:0]; [flavorContainerView addConstraint:constraint]; The NSBox is contained inside flavorView. On Fri, Apr 11, 2014 at 2:38 AM, Jonathan Mitchell wrote: > > On 10 Apr 2014, at 22:30, Julian wrote: > > > After conv

NSBox line with autolayout

2014-04-10 Thread Julian
0, top space to superview = 0, width = superview width. This unfortunately does not get the line to be redrawn to the appropriate width. Other views with similar constraints are getting wider. ( I also tried trailing space to superview = 0.) Thanks, Julian ___

Re: Causes of "Cannot update object that was never inserted"

2013-06-16 Thread Julian Richardson
I believe that ALAssetLibrary uses Core Data, so the problem could be a user's messed up image library. Having just been through hell due to a corrupted iTunes library on my device, I can say that such problems can lead to very inconsistent behavior. Julian -- Julian Richardson

Re: leak in AVAudioPlayer ?

2012-12-07 Thread Julian Richardson
not being retained by some other part of my code. I believe there probably is a bug in the simulator implementation of AVAudioPlayer. I have not checked but guess the same phenomenon is causing the NSURL to be retained. Julian -- Julian Richardson, PhD http://www.ternary.ws On Dec 7, 2012, at

Re: -[CALayer setContents:] slower in iOS 4.2?

2011-02-01 Thread Julian Wood
That was the key! Performance is good again. Thanks very much for the tip. Julian On 2011-02-01, at 10:26 AM, David Duncan wrote: > On Jan 31, 2011, at 4:12 PM, Julian Wood wrote: > >> We grab the appropriate image portion from the spriteAtlas using >> CGImageCreateWithImag

-[CALayer setContents:] slower in iOS 4.2?

2011-01-31 Thread Julian Wood
proach that will improve the situation. It may be that we have to split up our sprite atlases, but I wanted to ask for advice from the list first. Any thoughts or suggestions would be greatly appreciated! Thanks, Julian ___ Cocoa-dev mailing

send computer to sleep

2010-05-26 Thread Julian.
what is the correct way to send the computer to sleep? i couldn't find anything in the documentation, except appleevents... thanks, Julian.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: simple CATextLayer scaling problem

2010-05-10 Thread Julian.
Have to say, that i'm new to cocoa and even newer to core animation. i have tried so far, bit trail&errorly: CAConstraint, autoresizingMask, preferredFrameSize and googled for the problem. I know, newbie questions suck :) lg, Julian. Am 10.05.2010 um 04:33 schrieb Kyle Sluder: &

simple CATextLayer scaling problem

2010-05-09 Thread Julian.
600 the text size should be 24. I couldn't find a working solution! Can you please give me a clue? Thanks, Julian.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Terminating subtasks reliably

2010-04-04 Thread Julian Hsiao
Why not have the parent call setsid() / setpgid() at the beginning? This should prevent the PID from getting recycled until every process in the process group exits. Julian Hsiao mad...@nyanisore.net On Apr 2, 2010, at 8:10 PM, Michael Ash wrote: > On Thu, Apr 1, 2010 at 7:19 PM, Dave K

Re: UIImageView drawRect not called

2009-01-06 Thread Julian
I have independently encountered the same scenario and gotten the same results. The documentation suggests that if you call setNeedsDisplayInRect:, drawRect: will get called. Also, I have put a symbolic breakpoint on -[UIImageView drawRect:], and it does get called sometimes, but seemingly not ever

Re: Cocoa-dev Digest, Vol 5, Issue 604

2008-04-14 Thread Julian James
Hi, Sounds good to me if it means I save money! How does it work when I go on holiday, as I will in May for 2 weeks or when I'm between contracts and have no income? Julian On Monday, April 14, 2008, at 10:01AM, <[EMAIL PROTECTED]> wrote: >Send Cocoa-dev mailing list