On Feb 12, 2012, at 7:37 PM, Ken Thomases wrote:
> There shouldn't be much mystery about how to implement object copying since
> Apple documents it pretty clearly... Er, holy crap! I went to find the
> article titled "Implementing Object Copy" and Apple seems to have deleted it
> from the refe
Great thanks all for the answer...
On Feb 13, 2012, at 9:49 AM, Roland King wrote:
> No.
>
>
>
> On 13 Feb, 2012, at 9:26, "Rick C." wrote:
>
>> Hi,
>>
>> Is there any possibility to rearrange the app icons in iOS programmatically?
>> Thanks,
>>
>> rc
>> __
okay, that's getting to the root of the problem. Never knew about %p... yikes!
Good to know. Thanks!
J.
On 2012-02-12, at 6:22 PM, Graham Cox wrote:
>
> On 13/02/2012, at 12:54 PM, James Maxwell wrote:
>
>> But it does beg the question: is there an easy way to test the **identity**
>> of an
On 13/02/2012, at 11:54 AM, James Maxwell wrote:
> But it does beg the question: is there an easy way to test the **identity**
> of an object? That is, to NSLog the identity of an object, to see if (and
> how) it's different to a copy that returns YES to isEqual and has the same
> hash? I gues
On 13/02/2012, at 12:54 PM, James Maxwell wrote:
> But it does beg the question: is there an easy way to test the **identity**
> of an object? That is, to NSLog the identity of an object, to see if (and
> how) it's different to a copy that returns YES to isEqual and has the same
> hash?
Look
Yes, thanks Ken.
I've sorted out the copying issue I **thought** I was having. Turned out not to
be a copying issue (and my isEqual and hash were fine, which I kind of
suspected)... my data was getting pooched somewhere else. I was just confused
because I had naively placed an NSLog(@"%@", [ob
No.
On 13 Feb, 2012, at 9:26, "Rick C." wrote:
> Hi,
>
> Is there any possibility to rearrange the app icons in iOS programmatically?
> Thanks,
>
> rc
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin re
Not with anything in the official SDK - nothing you could put in the App Store.
On Feb 12, 2012, at 5:26 PM, Rick C. wrote:
> Hi,
>
> Is there any possibility to rearrange the app icons in iOS programmatically?
> Thanks,
>
> rc
___
Cocoa-dev mail
Both of the code snippets on that StackOverflow thread have bugs if you're
manually managing memory (as opposed to using GC or ARC). Since they use the
dot syntax to set the property of the copy, they are invoking the setter. In
all probability, the setter does memory management. It takes own
Hi,
Is there any possibility to rearrange the app icons in iOS programmatically?
Thanks,
rc
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-d
On Feb 12, 2012, at 16:25 , James Maxwell wrote:
> I have an object with isEqual set up to help me limit the number of "unique"
> objects I can put in a Dictionary. Basically, the object has a few properties
> which account for "equality", and some properties that don't matter. For
> example, p
On 13/02/2012, at 11:44 AM, James Maxwell wrote:
> Okay, just saw an interesting post on this:
>
> http://stackoverflow.com/questions/1459598/how-to-copy-an-object-in-objective-c
>
> This is quite different from what I've generally seen, which just does:
>
> MyClass* copy = [[self class] alloc
Okay, just saw an interesting post on this:
http://stackoverflow.com/questions/1459598/how-to-copy-an-object-in-objective-c
This is quite different from what I've generally seen, which just does:
MyClass* copy = [[self class] allocWithZone:zone];
then uses accessors to assign all the properties
Okay, so I'm officially confused.
I have an object with isEqual set up to help me limit the number of "unique"
objects I can put in a Dictionary. Basically, the object has a few properties
which account for "equality", and some properties that don't matter. For
example, propA and propB are used
I've come across an odd rendering artefact when drawing a stroked path using
[NSBezierPath stroke] in Lion (other systems not checked yet, but I don't
recall seeing this before).
This screen shot illustrates the problem:
http://mapdiva.com/bugger/uploads/quartzbug.png
When you have a curv
I probably should have included this YouTube link from Cocoaheads.
http://www.youtube.com/watch?v=6QQAzhwalPI
Don't let the title fool you. I make plenty of references to Mac for
AVFoundation, and approach OpenAL from a cross platform perspective.
___
C
On 2/12/12, Pascal Harris <45rpmli...@googlemail.com> wrote:
> My game is playable - so I'm polishing the hell out of it right now. I've
> never written a game before though so, whilst I can manage the graphics okay
> (it's a puzzle, so NSMatrix does nicely), I'm utterly perplexed as to how to
> p
On 13/02/2012, at 9:02 AM, David Delmonte wrote:
> I have a search box, and need to parse out some special characters (' and \).
> The search bar text is sbar.text.. How do I interrupt the string before it is
> sent and remove (or warn) of these characters... ? Many thanks..
>
> I've tried thi
On 12/02/2012, at 6:40 PM, Richard Somers wrote:
> It just seems so heavy. My app will be using the scalar accessors very
> frequently.
Seems. But is it?
There's no reason I can think of that this couldn't be efficient, using caching
as necessary and so on.
If the ultimate goal is to render
Back in the Director/Shockwave days, we had to write our own sound management
routines.
Preloading the sound, or set of sounds was one of the important things we had
to do before playing them or they will be fetched off the disk and loaded into
memory when they are needed.
On Feb 12, 2012, at
I have a search box, and need to parse out some special characters (' and \).
The search bar text is sbar.text.. How do I interrupt the string before it is
sent and remove (or warn) of these characters... ? Many thanks..
I've tried this:
if ([sbar.text isEqualToString:(@"'")] || [sbar.text isE
On 12 Feb 2012, at 1:04 am, Richard Somers wrote:
> Another confusing thing is that Xcode 4.2 has a new undocumented checkbox
> called "Use scalar properties" in the class generation sheet. But this only
> works with iOS 5 and Mac OS X 10.7.
I can testify (after some frustrating time tracking i
On Feb 12, 2012, at 10:35 AM, Conrad Shultz wrote:
> The simplest (and therefore least customizable) approach would be to use
> NSSound. But I think it will do everything you stipulate.
A minor issue with NSSound in games is that, the first time you play a
particular sound, it’ll first hang f
On Feb 12, 2012, at 12:06 PM, Mike Abdullah wrote:
>
> On 12 Feb 2012, at 02:49, Kyle Sluder wrote:
>
>> On Feb 11, 2012, at 3:56 PM, Charles Srstka wrote:
>>
>>> On Feb 11, 2012, at 5:25 PM, William Squires wrote:
>>>
is ARC a Lion-only feature or will an ARC-compiled app work on 10.6
On Feb 11, 2012, at 9:49 PM, Kyle Sluder wrote:
> On Feb 11, 2012, at 3:56 PM, Charles Srstka wrote:
>
>> On Feb 11, 2012, at 5:25 PM, William Squires wrote:
>>
>>> is ARC a Lion-only feature or will an ARC-compiled app work on 10.6.8
>>> assuming no other Lion features are used?
>>
>> Every
On Feb 12, 2012, at 12:35 PM, Conrad Shultz wrote:
> The simplest (and therefore least customizable) approach would be to use
> NSSound. But I think it will do everything you stipulate.
>
> See the topical documentation as well:
> https://developer.apple.com/library/mac/documentation/Cocoa/Con
The simplest (and therefore least customizable) approach would be to use
NSSound. But I think it will do everything you stipulate.
See the topical documentation as well:
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Sound/Sound.html
(Sent from my iPhone.)
--
Conrad Sh
My game is playable - so I'm polishing the hell out of it right now. I've
never written a game before though so, whilst I can manage the graphics okay
(it's a puzzle, so NSMatrix does nicely), I'm utterly perplexed as to how to
play sound effects and music. The music isn't written yet, but I w
On Wed, 08 Feb 2012 16:23:38 -0800, G S said:
>The problem is that this view is almost never deallocated, even long after
>the user dismisses it with the Back button. It's not a leak
Sorry to arrive late to this party, but it sounds to me (from other things
you've said, not quoted here) like it
On 12 Feb 2012, at 02:49, Kyle Sluder wrote:
> On Feb 11, 2012, at 3:56 PM, Charles Srstka wrote:
>
>> On Feb 11, 2012, at 5:25 PM, William Squires wrote:
>>
>>> is ARC a Lion-only feature or will an ARC-compiled app work on 10.6.8
>>> assuming no other Lion features are used?
>>
>> Everythi
On 10 Feb 2012, at 14:21, Alvaro Costa Neto wrote:
> When the user drags the divider and collapses it, the split view retains the
> view's frames before the collapse and that's probably something that is
> giving you some problems. In this sense, there are two different behaviors
> going on wh
On 12 feb 2012, at 01:04, Richard Somers wrote:
>> Hmm. The Foundation Release Notes for 10.5 indicate that KVC supports
>> arbitrary structs (see section titled "Support for Arbitrary Types in KVC
>> and KVO")
>
> Yes I have read that several times. It seems to be at odds with the Core Data
On Feb 12, 2012, at 1:28 AM, Kyle Sluder wrote:
> Hmm. The Foundation Release Notes for 10.5 indicate that KVC supports
> arbitrary structs (see section titled "Support for Arbitrary Types in KVC and
> KVO")
Yes I have read that several times. It seems to be at odds with the Core Data
document
On Sat, Feb 11, 2012 at 11:40 PM, Richard Somers wrote:
> Karoly Lorentey has a blog entry "Efficient Scalar Attributes in Core Data"
> for iOS. I was trying to follow his lead except target Mac OS X v10.6 using a
> struct instead of a single scalar but it has been rough going.
>
> http://bl
34 matches
Mail list logo