On Aug 11, 2009, at 8:58 PM, DairyKnight wrote:
I've been tracing an iPhone application, and found out the
NSPush/PopAutoreleasePool pair being called every time before/after
entering
the event loop. I did some googling about these apis and they seem
to be
undocumented.
They are not
On Aug 11, 2009, at 4:22 PM, Trygve Inda wrote:
My app has never done this for me, but how can the OS say it is not
an Intel
App when it is a 32/64 universal binary?
You keep saying app, but that string you mentioned earlier appears
in System Preferences if the preferences
On 08/08/2009, at 7:47 AM, Trygve Inda wrote:
Although my app is a universal binary (32/64), and was developed on
an Intel
Mac, a few people report when trying to install and error:
You cannot open (my app) preferences because it doesn't work on an
Intel-based Mac.
I suspect the error
I'm running into a refresh problem with an NSStatusItem. It began when
I added a -setView call to one of the menu items.
The refresh issue occurs when the following take place:
1- Command-tab to any other app
2- Click in the status item
3- Release the mouse and command-tab back to my app
On 2009 Aug 11, at 11:32, Squ Aire wrote:
The question is: How can I set the name of the undo action to
Modify Name using setActionName of the MOC's undo manager just
before the user changes an employee's name in the table view (or by
any other means)?
Do I have to subclass the MO and
Because my application deals with a small number of documents -- most
users will have only one, and because these documents have agents
associated with them and are often not edited, I want my app to warn
the user immediately upon opening a document that is in the Trash,
instead of the
Hello,
I'm using this solution
http://www.cocoabuilder.com/archive/message/cocoa/2008/8/3/214715 to
animate a sequence of images in a flipbook style.
It works fine on the simulator but on the device it's REALLY slow. If I
set the duration to less than 5 seconds (for 25frames) the animation
Sean,
Thanks very much for the link, the example project is fundamentally
doing the same things that I'm trying to accomplish, without the
linked-list functionality.
I ran the app and noticed that the animating views were also being
clipped by the window. After seeing this example it
On Aug 12, 2009, at 10:10 AM, Jerry Krinock wrote:
Because my application deals with a small number of documents --
most users will have only one, and because these documents have
agents associated with them and are often not edited, I want my
app to warn the user immediately upon opening
Le 12 août 09 à 16:10, Jerry Krinock a écrit :
Because my application deals with a small number of documents --
most users will have only one, and because these documents have
agents associated with them and are often not edited, I want my
app to warn the user immediately upon opening a
Don't pass the observer as the context: argument; pretty much anything
else is better. Passing NULL (just, for example) flattens the curve
quite a bit. If you have nothing better to pass in, put this in your
code and pass the address of it:
static char _xyzzy_ = 0;
Chris Kane
Cocoa
On Aug 11, 2009, at 10:28 AM, Fritz Anderson wrote:
iPhone OS 3.0
Can an NSTimer be rescheduled after firing, and after another trip
through the run loop?
I'd like to reschedule a NON-repeating timer in my own code. I
assume that in the simple case it would be something like:
- (void)
Hi,
Many thanks for the detailed and thoughtful reply, and apologies for not
replying sooner myself.
Having taken all your (and Graham's) suggestions and thoughts on board, after a
lot of head-scratching and working things out on paper first, I think I have -
tentatively - cracked it. I stuck
You can call [[NSLocale currentLocale] localeIdentifier], to get the
locale identifier of the user's preferred locale, and then create
another NSLocale from it. This will be a locale that doesn't have any
(not just formatting) user preference overrides in it but is still the
user's
Le 12 août 09 à 17:55, Christopher Kane a écrit :
On Aug 11, 2009, at 10:28 AM, Fritz Anderson wrote:
iPhone OS 3.0
Can an NSTimer be rescheduled after firing, and after another trip
through the run loop?
I'd like to reschedule a NON-repeating timer in my own code. I
assume that in
On 12 Aug 2009, at 10:55 AM, Christopher Kane wrote:
On Aug 11, 2009, at 10:28 AM, Fritz Anderson wrote:
iPhone OS 3.0
Can an NSTimer be rescheduled after firing, and after another trip
through the run loop?
I'd like to reschedule a NON-repeating timer in my own code. I
assume that in
On Aug 12, 2009, at 1:36 AM, Trygve Inda wrote:
It is not an app, but a .prefpane. It is built as a 32/64 ppc/intel,
so that
it runs native on all architectures including 10.6.
On my systems it runs Intel 32 on 10.5 and Intel 64 on 10.6. It also
has PPC
32 code in it.
Sadly, we can't
I have an NSOutlineView bound to an NSTreeController, that when
reloaded - always reloads to the scroll position declared in my
awakeFromNib. I would like to reload it to the same scroll position
before it was reloaded.
How can I do this.
thanks in advance.
On Aug 12, 2009, at 7:17 AM, Sven wrote:
It works fine on the simulator but on the device it's REALLY slow.
If I set the duration to less than 5 seconds (for 25frames) the
animation doesn't even play and I end up at the last frame after a
pause on the previous screen.
The skipped initial
On Wed, 12 Aug 2009, David Duncan wrote:
Thanks for the quick reply
On Aug 12, 2009, at 7:17 AM, Sven wrote:
It works fine on the simulator but on the device it's REALLY slow. If I
set the duration to less than 5 seconds (for 25frames) the animation doesn't
even play and I end up
Hi,
I'm trying to print, given a CGImageRef (cgImage). In order to do this
correctly, I need to get a couple of 'CGImageProperty' from my image, like
kCGImagePropertyDPIHeight, kCGImagePropertyDPIWidth and
kCGImagePropertyOrientation. I try to do this from a CGImageSourceRef, which
I create in
I haven't tried this yet, but I just looked at IB and created a new
NSOutlineView and clicked on the scrollbar and then looked at its
bindings. There is a 'value' that can be bound to, I would assume
that is its current position, but I haven't verified that. If so you
can bind that to
On Aug 12, 2009, at 11:37 AM, Christopher Kane wrote:
Don't pass the observer as the context: argument; pretty much
anything else is better.
Out of curiosity -- why would this affect performance and why is this
a bad idea (other than performance)? Isn't the context: treated as an
opaque
On 2009 Aug 12, at 08:33, Jean-Daniel Dupas wrote:
What did you used as domainOrVRefNum ?
Well, I tried various values but eventually settled on zero (0)
because, according to the FSDetermineIfRefIsEnclosedByFolder()
documentation, this will check all domains and volumes.
On 2009 Aug
Hey,
I have a CoreData project with a schema that I layout by hand in a
class (because the schema has to be used in a command line tool.) On
10.5 my code is working perfectly, but on 10.4 whenever my code
attempts to create a new object, I get an exception. According to the
stack trace
I release a regular instance variable in my managed object's -
didTurnIntoFault, and discovered that this was causing a crash
sometime after an undo. In searching code on the internet I see that
others have reported such crashes. I solved the problem by setting
the instance variable to
Evan,
According to Cocoadev.com, Animator proxies can be used with or without
layer-backed mode. Here is the page that mentions this:
http://www.cocoadev.com/index.pl?CoreAnimation
I hope that helps.
Regards,
Sean
On Wed, Aug 12, 2009 at 10:22 AM, Evan Moseman evan.mose...@gmail.comwrote:
On Aug 11, 2009, at 11:39 PM, Renzil D'Souza wrote:
Once I get the CGImageSourceRef, I make a call to
CGImageSourceCopyProperties() passing it the imageSource . But this
always
returns a NULL. If I output this CGImageRef to a file, and then read
it back
as a CGImageSource, and then call
On 8/12/09 11:41 AM, Jerry Krinock said:
I release a regular instance variable in my managed object's -
didTurnIntoFault, and discovered that this was causing a crash
sometime after an undo. In searching code on the internet I see that
others have reported such crashes. I solved the problem by
Hello, all ...
I've an an iPhone app that runs swimmingly on my devices, but shows
display glitches on others testing it. I suspect it's an image leak
of some sort (this code uses a _lot_ of images, animations, etc).
When I run Instruments, though, the leaks tool doesn't seem to point
CocoaHeads Lake Forest will be meeting on the second Wednesday of the
month. We will be meeting at the Orange County Public Library (El
Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630
Please join us from 7pm to 9pm on Wednesday, 8/12.
Joe Sickel and Dylan Beadle will be talking
Now I understand that if nilling an instance variable after releasing
it is done in -dealloc, it is papering over other memory management
problems and is therefore bad programming practice. But I believe
that this practice is OK in -didTurnIntoFault because, particularly
when Undo is
Hi:
I have code something like this.
CGContextSelectFont(ctx, Times New Roman, 26, kCGEncodingMacRoman);
It works fine, but who can I change the color of the font?
Thanks in advance.
Best regards
Agha
___
Cocoa-dev mailing list
On Aug 11, 2009, at 5:51 PM, Dave DeLong wrote:
Hey everyone,
Hi Dave!
I'm about to embark on understanding NSRule/PredicateEditors but
before I get too deep into the code, I wanted to ask a couple
questions.
I'm hoping to create an interface whereby the user can create an
Thanks for the info! I spent some time at NSCoder Night last night
poking around with attempting to convert an NSPredicate into an
NSCompoundPredicate using the TODParseKit and the BNF definition of
NSPredicate grammar in the docs, then eventually gave up. =) (I
figured there had to be
On 13/08/2009, at 7:09 AM, Agha Khan wrote:
CGContextSelectFont(ctx, Times New Roman, 26, kCGEncodingMacRoman);
It works fine, but who can I change the color of the font?
set the context's fill and/or stroke colours as usual and use
CGContextSetTextDrawingMode to set how the text uses
Hi Agha,
An appropriate answer depends entirely on what you want to do with the
image. Do you want to draw the image into a view? Do you want to save
the image to the hard disk?
You'll have to give us more information to help you out.
Kiel
On 13/08/2009, at 11:22 AM, Agha Khan wrote:
Hi Agha,
I'm not too sure what's wrong with the picture so I'm not sure how
much I can help you.
But to rotate your image by the centre, first translate your image or
context so the centre of the image/context is located at the origin:
1 Translate by negative half width, negative half
I've got a UITableView where the colour of the row text can change
depending on its place in the table. For example, a row may change
colour if it's moved from the bottom to the top of the table; and
sometimes its colour may change if another row is deleted or inserted.
The problem is that
I figured out why it's not loading!
Apparently, when doing this in a document-based application,
readFromData:ofType:... is called *before* the nib is loaded, so
obviously my message of [predicateEditor
setObjectValue:unarchivedPredicate]; wasn't working, because
predicateEditor hadn't
Hi all,
I have a NSOutlineView. I want to use the small text size (by setting Text
Field Cell Size to Small in Interface Builder).
The disclosure triangle looks proper and is vertically centered in the row.
However the text is too high in the cell. I would like it centered like the
disclosure
On Thu, 6 Aug 2009 14:03:12 -0400, Hank Heijink wrote:
If one of your buttons is always hidden, why do you need two
buttons? You can just use one button and change the title, target,
and action when you need to. If necessary you can even replace the
whole button.
On Aug 6, 2009, at 1:47
On 12.08.2009, at 22:59, Dave Keck wrote:
I've found that there's never any reason not to reset a variable after
releasing it. IMO it's just good practice.
I agree with that point. You may want to declare a macro like this:
#define INVALIDATE_REFERENCE(obj) ([(obj) autorelease], (obj) = nil)
On 13/08/2009, at 1:25 PM, Oftenwrong Soong wrote:
Is there a similarly easy way to change the vertical alignment of
the text?
You need a custom text cell. It's a pity that vertical centring of
text isn't a widely supported feature in all sorts of places, but
there you are - file a
On Aug 12, 2009, at 11:49 AM, Steven Arnold stev...@arnold-
software.com wrote:
I have a use case for needing two buttons. I need a button to add a
new item and a button to edit (including delete and move around)
existing items. It's a UINavigationBar, so I am using the
Folks;
I have a logging facility built into my application to assist in
troubleshooting from the field.
These 4 lines appear SOMETIMES in user submitted log files:
2009-08-12 10:57:55.383 MyApp[296:20b] .sdef error: (null)
2009-08-12 10:57:55.383 MyApp[296:20b] line number: 2
2009-08-12
On Aug 12, 2009, at 15:00, Georg C. Brückmann wrote:
I agree with that point. You may want to declare a macro like this:
#define INVALIDATE_REFERENCE(obj) ([(obj) autorelease], (obj) = nil)
The reason I chose autorelease over release are situations like the
following: You register as a
On 11/08/2009, at 4:20 AM, Brian Carmalt wrote:
Let's say I want the combo box to provide the user with auto
completion on the names of categories in the array controller, and
if the user types in a category name that does not exist, then they
will be automatically prompted to create the
48 matches
Mail list logo