If you have access to the WWDC site:
https://developer.apple.com/wwdc/mac/library/samplecode/CustomMenus/Introduction/Intro.html
If not, then the short answer is that you need to send the action method
yourself and then close the menu. Personally, I prefer to wire up the action on
the menu item
On Mon, Aug 30, 2010 at 5:14 AM, Chris Hanson c...@me.com wrote:
On Aug 28, 2010, at 10:00 AM, Andy Bell andy.b...@allbabel.com wrote:
At a later date I want to use something like REST using JSON to be the
backend to Core Data in the application. Is this going to be possible?
Core Data
On Aug 27, 2010, at 10:18 PM, Erik Colson wrote:
What would be the best way to create a button with a partially transparent
image on a nsview that would only respond to mouse clicks that are on the
non-transparent part of the image ?
Override NSView's -hitTest: method on a subclass of
Hello,
I can't seem to find any discussion about this, but I have this
question after I watched session 137 of WWDC about core data
optimization.
So, Melissa Turner advise to use = and instead of BEGINSWITH, but
how do I do that with predicate substitution variables or formatted
predicate?
Can the following be done completely in the nib file (in IB)?
I have a form field whos fields are bound to various attributes of an
object (the object Person has attributes as firstName, lastName, etc.). In
my view I would like lock these fields, prohibiting them from being
changed, i.e. I'd like
Le 30 août 2010 à 13:26, co...@wamundson.eu a écrit :
Can the following be done completely in the nib file (in IB)?
I have a form field whos fields are bound to various attributes of an
object (the object Person has attributes as firstName, lastName, etc.). In
my view I would like lock
Hi,
I have a very strange problem with a web view, that is integrated in HUD
window. When I scrolling the content with a wheel I see that the content of
underlying document scrolls either. Seems, like scrolling events propagate to
the underlying document. What might be the problem there and
Hi list,
I'm having trouble tracking down the source of a crash.
My app is built with a base SDK and deployment target of 10.5, but will only
run on 10.6 systems. On 10.5 systems it crashes on launch with an
EXC_BREAKPOINT and the following message:
Dyld Error Message:
unknown required load
Hi everybody,
just an enquiry regarding coding style. What is considered best:
baz = [[[Foo alloc] init] autorelease];
…
return baz;
or
baz = [[Foo alloc] init];
…
return [baz autorelease];
?
Thanks!
Vincent___
Cocoa-dev mailing list
Prefer the first
[[[Foo alloc] init] autorelease];
If there is a @throw between the creation and return, there is a chance (if not
properly handled) that the autorelease won't be called.
On 30 Aug 2010, at 17:29, Vincent Habchi wrote:
Hi everybody,
just an enquiry regarding coding style.
My personal preference is the latter example. My general rule of thumb is that
once I -release or -autorelease an object, I shouldn't interact with it
anymore, since I have relinquished ownership of said object.
The only time I don't follow that guideline is when I'm working inside a method
On Aug 30, 2010, at 11:29 AM, Vincent Habchi wrote:
Hi everybody,
just an enquiry regarding coding style. What is considered best:
baz = [[[Foo alloc] init] autorelease];
…
return baz;
or
baz = [[Foo alloc] init];
…
return [baz autorelease];
?
According to the Google
On Aug 30, 2010, at 10:29 AM, Vincent Habchi wrote:
just an enquiry regarding coding style. What is considered best:
baz = [[[Foo alloc] init] autorelease];
…
return baz;
or
baz = [[Foo alloc] init];
…
return [baz autorelease];
?
As with most style questions, there's no
On 30 aug 2010, at 08.29, Vincent Habchi wrote:
baz = [[[Foo alloc] init] autorelease];
I think that it's definitively preferable to autorelease on the same line. It
keeps all memory management together, and it's much less likely that later
rearrangements of the code in question will result
Never mind, I found the solution in DerivedProperty example.
On Mon, Aug 30, 2010 at 6:43 PM, Jesse Armand mnemonic...@gmail.com wrote:
Hello,
I can't seem to find any discussion about this, but I have this
question after I watched session 137 of WWDC about core data
optimization.
So,
Hi,
I need to take an NSImage, scale it down a bit while drawing it into an new
NSImage and all along keep all the metadata associated with the original image
( such as the color profile, etc, ... ). Are there any example out there that
show how to do this.
I've tried creating a new NSImage
Hi all,
I have been deleting objects with code similar to this.
NSManagedObjectContext *context = [[self fetchedResultsController]
managedObjectContext];
[context deleteObject:videoEntity];
[managedObjectContext processPendingChanges];
//commit
On 30 Aug, 2010,at 11:33 AM, Dave DeLong davedel...@me.com wrote:
My personal preference is the latter example. My general rule of thumb is that
once I -release or -autorelease an object, I shouldn't interact with it
anymore, since I have relinquished ownership of said object.
Definitely true
On Mon, 30 Aug 2010 08:37:08 -0700, Joar Wingfors said:
I think that it's definitively preferable to autorelease on the same
line. It keeps all memory management together, and it's much less likely
that later rearrangements of the code in question will result in memory
leaks.
And for those that
Which is the preferred method of object allocation initialization?
header file.h
@property(nonatomic, release) IRMSerialDetailsDO *serialIDs;
...
body.m
@synthesize mySerialIDDO
...
// 1)
self.serialIDs = [[IRMSerialDetailsDO alloc] init];
or...
// 2)
IRMSerialDetailsDO *mySerialIDDO =
#1 is a leak.
(I'm assuming that release is supposed to be retain in the property
declaration)
Brian
On Aug 30, 2010, at 8:23 PM, Frederick C. Lee wrote:
Which is the preferred method of object allocation initialization?
header file.h
@property(nonatomic, release) IRMSerialDetailsDO
On 2010 Aug 30, at 05:42, Joanna Carter wrote:
The usual way to handle this would be to have a simple boolean property on
the controller class…
True, but let's answer the poster's question,
Le 30 août 2010 à 13:26, co...@wamundson.eu a écrit :
Can this binding be done … completely in
Googling CoreData could not fulfill a fault yields
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdTroubleshooting.html
as the very first result; it took me three seconds to do this.
You don't give enough information to say for sure, but can you tell
// 1)
self.serialIDs = [[IRMSerialDetailsDO alloc] init];
The alloc method allocates an instance with a retain count of 1, and
assigning it to the serialIDs property bumps it up to 2. In your
dealloc method, you will [hopefully] send it a release message which
puts it back at 1, but this means
On Aug 30, 2010, at 7:10 AM, Ben wrote:
My app is built with a base SDK and deployment target of 10.5, but will only
run on 10.6 systems. On 10.5 systems it crashes on launch with an
EXC_BREAKPOINT and the following message:
Dyld Error Message:
unknown required load command 0x8022
I am uncompressing data with zlib:
err = uncompress( buffer, bufferLength, (const Bytef*)data + sizeof( uLongf
), [self length] - sizeof( uLongf ) );
This works when I build a debug target, but not when I build a release
target.
I have verified the data sent into each target is the same. In
On Aug 30, 2010, at 7:23 PM, Frederick C. Lee wrote:
// 1)
self.serialIDs = [[IRMSerialDetailsDO alloc] init];
This is, as mentioned, a leak, although if performance is not an issue, you can
still have the simplicity:
self.serialIDs = [[[IRMSerialDetailsDO alloc] init] autorelease];
We're having a hard time tracking down our smaller leaks in our iPad app. When
running on the simulator, one thing we noticed is that none of our Core Data
objects shows up in Leaks or Allocations (all of them have custom
NSManagedObject subclasses).
Does Core Data never actually instantiate
I am uncompressing data with zlib:
err = uncompress( buffer, bufferLength, (const Bytef*)data + sizeof( uLongf
), [self length] - sizeof( uLongf ) );
This works when I build a debug target, but not when I build a release
target.
I have verified the data sent into each target is the
Assuming his @property was supposed to be (nonatomic,retain)
We did the release explicitly when doing some sample code on iPhone. We didn’t
want the autorelease pool to grow.
IRMSerialDetailsDO *mySerialIDDO = [[IRMSerialDetailsDO alloc] init];
self.serialIDDO = mySerialIDDO;
[mySerialIDDO
On Aug 30, 2010, at 6:37 PM, Dave Geering wrote:
// 1)
self.serialIDs = [[IRMSerialDetailsDO alloc] init];
The alloc method allocates an instance with a retain count of 1, and
assigning it to the serialIDs property bumps it up to 2. In your
dealloc method, you will [hopefully] send it a
// 1)
self.serialIDs = [[IRMSerialDetailsDO alloc] init];
The alloc method allocates an instance with a retain count of 1, and
assigning it to the serialIDs property bumps it up to 2. In your
dealloc method, you will [hopefully] send it a release message which
puts it back at 1, but this
32 matches
Mail list logo