Hi all-
I’m working on a document-based app and making every effort to adopt the
behaviors of a modern app. This includes state restoration, described in the
current documentation at:
https://developer.apple.com/library/mac/documentation/General/Conceptual/MOSXAppProgrammingGuide/CoreAppDesign
On May 24, 2014, at 6:44 AM, John Pannell wrote:
> I’m working on a document-based app and making every effort to adopt the
> behaviors of a modern app. This includes state restoration, described in the
> current documentation at:
>
> https://developer.apple.com/library/mac/documentation/Gener
Two separate issues:
1. CALayer Animation. I have a movie sublayer which has an observer to
track an underlying draw object¹s bounds. When dragging the object, the
movie layer position lags. I¹ve tried ³removeAnimationForKey:@²position²,
and ³removeAllAnimations² when creating the layer. I¹ve al
On May 24, 2014, at 10:02 AM, Gordon Apple wrote:
> Two separate issues:
>
> 1. CALayer Animation. I have a movie sublayer which has an observer to
> track an underlying draw object¹s bounds. When dragging the object, the
> movie layer position lags. I¹ve tried ³removeAnimationForKey:@²positi
Hi Keary -
I knew it was going to be something like this… :-)
On May 24, 2014, at 8:58 AM, Keary Suska wrote:
> Lastly, although it may be obvious, the "restore windows" system setting must
> be turned on, or you have to use the option-quit method.
Indeed - the setting was set to close window
Dear Sir,
I'm trying to teach myself Objective C and I don't understand ARC very
well. Please could someone help me.
If I've understood this correctly (silly example):
-(NSString*)stringdoodad
{
NSMutableString* returnString = [[NSMutableString alloc] init];
@autoreleasepool
{
The compiler handles the case of a returned object properly. Ownership in the
form of one reference will pass, in your example, from returnString to
testString due to the assignment to the return value. testString will be
released when the block it’s in exits, and since there are no more referre
On May 24, 2014, at 2:34 PM, Jamie Ojomoh wrote:
> In the example, everything inside the autoreleasepool block will be
> released as soon as the block ends, so it's necessary to declare the return
> value outside the block.
No, in general ARC understands that the return value needs to keep a re
Are there any performance implications that would suggest preferring one or the
other of these different styles?
NSString *s = @"sing me a song";
[myClass aMethod: s];
and
[myClass aMethod: @"sing me a song"];
I have a lot of the first kind in my code, and I'm thinking of simplifying it
by tu
You misunderstand the point of the Stackoverflow answer. In the first
example you've given it looks like "s" is just a stack local variable. In
that case there is no difference between the two examples. Actually, in the
face of optimization I bet the assembly turns out exactly the same. Use the
lat
On May 24, 2014, at 21:08 , 2551 <2551p...@gmail.com> wrote:
> Are there any performance implications that would suggest preferring one or
> the other of these different styles?
>
> NSString *s = @"sing me a song";
> [myClass aMethod: s];
>
> and
>
> [myClass aMethod: @"sing me a song”];
Basi
On May 24, 2014, at 5:04 PM, Jens Alfke wrote:
> On May 24, 2014, at 2:34 PM, Jamie Ojomoh wrote:
>
>> In the example, everything inside the autoreleasepool block will be
>> released as soon as the block ends, so it's necessary to declare the return
>> value outside the block.
>
> No, in gener
12 matches
Mail list logo