May I add two questions to this enlightening thread?
1. With ARC, do we still have to worry about string1 leaking in the following
scenario?
@property (nonatomic, copy) NSString *string1;
…..
self.string1 = @Hello;
string1 = @Hello hello;
string1 = @Hello hello hello;
2. How do the strong,
On Wednesday, 29. May 2013 at 8:37, Diederik Meijer | Ten Horses wrote:
May I add two questions to this enlightening thread?
1. With ARC, do we still have to worry about string1 leaking in the following
scenario?
@property (nonatomic, copy) NSString *string1;
…..
No, ARC perfectly
Hey, per OSX app-store regulations would an app be approved if it loads a flash
player inside a uiwebview but does not show that view, instead expanding on the
callbacks from it and creating a new experience and adding new functionality to
that service!?
I know Shiny Groove does something
On May 28, 2013, at 23:37 , Diederik Meijer | Ten Horses
diede...@tenhorses.com wrote:
1. With ARC, do we still have to worry about string1 leaking in the following
scenario?
@property (nonatomic, copy) NSString *string1;
…..
self.string1 = @Hello;
string1 = @Hello hello;
string1 =
Thanks Robert and Quincey, that's very helpful!
Op May 29, 2013, om 8:26 AM heeft Quincey Morris
quinceymor...@rivergatesoftware.com het volgende geschreven:
On May 28, 2013, at 23:37 , Diederik Meijer | Ten Horses
diede...@tenhorses.com wrote:
1. With ARC, do we still have to worry
Hello dear members!
Could you pls help me. I browsed a lot but could not find real answer
I'm implementing Voice over IP application. I'm getting output from mic on one
iPhone and I would like to send that data in real time to another device (or
may be some other device in group chat).
I'm
On May 28, 2013, at 5:55 PM, Greg Parker wrote:
On May 28, 2013, at 3:39 PM, Michael Hall mik3h...@gmail.com wrote:
On May 28, 2013, at 5:27 PM, Michael Hall wrote:
I thought I saw SHA-1 being used as a general purpose hash function
somewhere sort of surprising recently but I'm not
Le 29 mai 2013 à 00:46, Graham Cox graham@bigpond.com a écrit :
On 28/05/2013, at 3:46 PM, Oleg Krupnov oleg.krup...@gmail.com wrote:
I'd like to have a dictionary using C strings as keys (because I
already have const char* strings and would like to spare on creating
NSString
Le 29 mai 2013 à 06:14, Oleg Krupnov oleg.krup...@gmail.com a écrit :
Why not just create NSString wrappers? By using the
-initWithBytesNoCopy:length:encoding:freeWhenDone: method you can avoid it
copying the actual C string characters, it literally just becomes a thin
wrapper.
In my
I've been trying for 2 weeks on every machine I use, home and work, on every
browser installed on them and get an error, which I've reported twice. Not a
very useful error, just An error has occurred.
Is it just me, or is it actually down? I have two more UICollectionView and two
Quincy Morisses reply completely resolved the issue I was having with
bindings. I realized that we exchanged emails without copying this board. I
think Quincy's reply might be helpful to others, so I'm reposting his reply
on this board:
On May 28, 2013, at 16:25 , Paul Johnson p...@askerko.net
On May 29, 2013, at 7:06 AM, Roland King wrote:
I've been trying for 2 weeks on every machine I use, home and work, on every
browser installed on them and get an error, which I've reported twice. Not a
very useful error, just An error has occurred.
Is it just me, or is it actually down?
On 29 May, 2013, at 9:43 PM, Ken Thomases k...@codeweavers.com wrote:
On May 29, 2013, at 7:06 AM, Roland King wrote:
I've been trying for 2 weeks on every machine I use, home and work, on every
browser installed on them and get an error, which I've reported twice. Not a
very useful
On May 29, 2013, at 07:06:00, Roland King r...@rols.org
wrote:
I've been trying for 2 weeks on every machine I use, home and work, on every
browser installed on them and get an error, which I've reported twice. Not a
very useful error, just An error has occurred.
Is it just me, or is it
On May 29, 2013, at 12:06 AM, Alexandru Gologan alexandru.golo...@gmail.com
wrote:
Hey, per OSX app-store regulations would an app be approved if it loads a
flash player inside a uiwebview but does not show that view, instead
expanding on the callbacks from it and creating a new experience
On May 29, 2013, at 1:06 AM, Rufat A. Abdullayev rufa...@agbank.az wrote:
Could you pls help me. I browsed a lot but could not find real answer
What types of search keywords did you use?
I'm implementing Voice over IP application. I'm getting output from mic on
one iPhone and I would like
In Apple's Concepts in Objective-C Programming discussing Issues with
Initializers there is this code snippet
id anObject = [[MyClass alloc] init];
if (anObject) {
[anObject doSOmething];
// more messages…
} else {
// handle error
}
All the code I Googled does not address the nil case
On May 28, 2013, at 9:14 PM, Oleg Krupnov oleg.krup...@gmail.com wrote:
The profiler is not a panacea; when you have hundreds of small,
not-so-efficient pieces of code like this, all you see in profiler is a long
list of small consumers, totaling in heavy use of objc runtime calls.
Oh,
On May 28, 2013, at 9:14 PM, Oleg Krupnov oleg.krup...@gmail.com wrote:
The code in question is frequently used in many places so I think it's worth
optimization.
Did you actually profile the app and find that a lot of time is spent in this
code?
While I generally agree that premature
On Tue, 28 May 2013 21:16:05 -0700, Rick Mann said:
Pity Xcode doesn't automatically make a copy of the model when you make
a change (after each build).
That would be really annoying during development when your model is changing
rapidly.
Also, IIRC, inferred migration requires that newly
On May 29, 2013, at 9:36 AM, Peter Teeson ptee...@icloud.com wrote:
In Apple's Concepts in Objective-C Programming discussing Issues with
Initializers there is this code snippet
id anObject = [[MyClass alloc] init];
if (anObject) {
[anObject doSOmething];
// more messages…
} else {
I'm aware that certain prefixes like set are bad news to use to start method
names for obvious reasons, but with the caffeine levels in my brain cell
running low, I'm at a loss to recall some of the others (is return verboten?).
Is there a list of reserved method prefix strings that you simply
On May 29, 2013, at 10:37 AM, Alex Zavatone z...@mac.com wrote:
I'm aware that certain prefixes like set are bad news to use to start
method names for obvious reasons, but with the caffeine levels in my brain
cell running low, I'm at a loss to recall some of the others (is return
On Wed, May 29, 2013, at 11:28 AM, Jens Alfke wrote:
There aren’t any forbidden prefixes that I know of, but there are ones
that should be used only for particular purposes, because the compiler
and/or runtime will make assumptions about them when they see that
prefix.
Apple selfishly
On Wed, May 29, 2013, at 12:06 AM, Alexandru Gologan wrote:
Hey, per OSX app-store regulations would an app be approved if it loads a
flash player inside a uiwebview
How do you propose to achieve this?
--Kyle Sluder
___
Cocoa-dev mailing list
On Wed, May 29, 2013, at 11:46 AM, Kyle Sluder wrote:
On Wed, May 29, 2013, at 12:06 AM, Alexandru Gologan wrote:
Hey, per OSX app-store regulations would an app be approved if it loads a
flash player inside a uiwebview
How do you propose to achieve this?
Never mind. You clearly did not
Now that my brain cell's caffeine levels are normalizing, I seem to recall
somewhere in the Cocoa docs stating that starting a method name with a string
like return is somewhat frowned upon.
Yeah, it must have been in the ARC docs. I remember that using init or new are
not good ideas.
That
On May 29, 2013, at 11:46 AM, Kyle Sluder k...@ksluder.com wrote:
Because clearly we don't need namespaces in a modern object oriented
programming language.
Oh boy. First off, to pre-empt any lengthy threads about this, people should go
and read last year’s discussion over on the
On May 29, 2013, at 2:46 PM, Kyle Sluder wrote:
On Wed, May 29, 2013, at 11:28 AM, Jens Alfke wrote:
There aren’t any forbidden prefixes that I know of, but there are ones
that should be used only for particular purposes, because the compiler
and/or runtime will make assumptions about them
Clang objected to a variable that started with new when we turned it into a
property, because then there was a method named new that wasn't doing what it
expected. I don't remember the details; I renamed it a long time ago.
On May 29, 2013, at 10:37 AM, Alex Zavatone wrote:
I'm aware that
I have an NSView subclass that's used to draw contents of a menu item. When I
get a mouseUp in my view, I need to flash the hilite (I'm guessing just draw it
a couple times with a short delay between draws), dismiss the menu and perform
the action associated with the item. These seem like the
On 30/05/2013, at 8:41 AM, Steve Mills smi...@makemusic.com wrote:
but the menu is not closing before the action executes
This is normal. I think the idea is that the user gets a cue that whatever
action is being executed came from a menu choice, so the menu remains visible
while the action
Use performSelector:withObject:afterDelay:0 to push your response to the end of
the run loop, giving the UI a chance to update first. It's what I do when a
button (etc) is going to trigger something that won't be instantaneous, where
the button shouldn't keep showing in the pressed state while
On May 29, 2013, at 18:06:45, Lee Ann Rucker lruc...@vmware.com
wrote:
Use performSelector:withObject:afterDelay:0 to push your response to the end
of the run loop, giving the UI a chance to update first. It's what I do when
a button (etc) is going to trigger something that won't be
On May 29, 2013, at 17:59:58, Graham Cox graham@bigpond.com
wrote:
This is normal. I think the idea is that the user gets a cue that whatever
action is being executed came from a menu choice, so the menu remains
visible while the action is carried out.
That's totally untrue. When an
Don't delay the action/target part, write a wrapper function and delay that:
- (void)mouseUp:(NSEvent*)event
{
UNUSED_VAR(event);
NSMenuItem* item = [self enclosingMenuItem];
NSMenu* menu = [item menu];
// On mouseUp, we want to
On 30/05/2013, at 9:37 AM, Steve Mills smi...@makemusic.com wrote:
On May 29, 2013, at 17:59:58, Graham Cox graham@bigpond.com
wrote:
This is normal. I think the idea is that the user gets a cue that whatever
action is being executed came from a menu choice, so the menu remains
On 29 May 2013, at 14:14, Oleg Krupnov oleg.krup...@gmail.com wrote:
While I generally agree that premature optimization is evil,
That seems to come out of a belief that well-structured code is code that runs
poorly (this belief came out of an IBM system of the 50s/60s that had really
poorly
On May 29, 2013, at 6:30 PM, Ian Joyner ianjoy...@me.com wrote:
That seems to come out of a belief that well-structured code is code that
runs poorly
No, it’s a paraphrase of a famous quote by Don Knuth (We should forget about
small efficiencies, say about 97% of the time: premature
On May 29, 2013, at 18:46:18, Lee Ann Rucker lruc...@vmware.com
wrote:
Don't delay the action/target part, write a wrapper function and delay that:
Heh, so simple. Thanks!
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
I'm not disagreeing with anything about knowing/optimizing your real
bottlenecks.
But I did do hash table benchmarks a few months back:
http://playcontrol.net/opensource/LuaHashMap/benchmarks.html
CFDictionary I did not formally do in the benchmark, but I did run on
the side for curiosity. I
On May 29, 2013, at 10:29 PM, Eric Wing ewmail...@gmail.com wrote:
But I did do hash table benchmarks a few months back:
http://playcontrol.net/opensource/LuaHashMap/benchmarks.html
Perhaps off topic, but I wonder if it would be possible to alter your line
charts so that those circles that
On May 29, 2013, at 8:29 PM, Eric Wing ewmail...@gmail.com wrote:
CFDictionary I did not formally do in the benchmark, but I did run on
the side for curiosity. I found that the C-string to CFString
conversion ended up putting it at the bottom of the list in terms of
performance.
It seems
43 matches
Mail list logo