Mac.
On Aug 11, 2009, at 9:28 PM, Kyle Sluder wrote:
On Aug 11, 2009, at 9:18 PM, colors wrote:
Is there a way to determine if VoiceOver is enabled or not?
Mac or iPhone?
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On Aug 11, 2009, at 9:18 PM, colors wrote:
Is there a way to determine if VoiceOver is enabled or not?
Mac or iPhone?
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
Is there a way to determine if VoiceOver is enabled or not?
I have some strings to have the system speak based on text input, but
only when VoiceOver is enabled.
Rich Collyer
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not p
Hi Alastair,
I already created a sub-class for NSFormatter to help control input.
For instance, the ID value must be only numeric characters and up to 8
digits.
My current problem is the case where the user doesn't type anything and
leaves the current cell.
Regarding point 1:
The ID numbers will
Read up on the NSAutoreleasePool class. Presumably, this class calls
those functions in init and dealloc, respectively.
On Aug 11, 2009, at 6:58 PM, DairyKnight wrote:
Hi,
I've been tracing an iPhone application, and found out the
NSPush/PopAutoreleasePool pair being called every time be
Hi,
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.
Anyone knows what they do? I'm not trying to use them, just wa
On 12/08/2009, at 4:32 AM, 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 an
Hey everyone,
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
NSPredicate and then come back and edit it later. From what I've
unders
Nick Zitzmann wrote:
You keep saying "app", but that string you mentioned earlier
appears in System Preferences if the preferences application failed
to open a preference pane bundle for some reason, so I'm assuming
you meant "preference pane" where you said "app". Are you sure
you're bui
>> 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."
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 application
> What OS are those few people running?
>
> Kiel :-)
> "If video games affected us as kids, we'd all be running around in
> darkened rooms, munching on magic pills and listening to repetitive
> electronic music."
>
> On 08/08/2009, at 7:47 AM, Trygve Inda wrote:
>
>> Although my app is a univers
This is from a while back...
http://www.cocoabuilder.com/archive/message/cocoa/2008/11/18/223010
quote:
Is it possible to have a text field with a currency symbol that
appears automatically? For instance, if the user types 400, $400.00
appears in the text field. I've been using IB's formatter w
I wrote:
When a modeless Cocoa window is closed by clicking the close widget, I
see a console message saying "unlockFocus called too many time." (sic).
It doesn't happen if the window is closed using the File:Close menu
item. I set a breakpoint on NSLog, and saw a stack starting like this:
Houdah - ML Pierre Bernard wrote:
NSMutableString *dateFormat = [NSMutableString stringWithString:
[dateFormatter dateFormat]];
[dateFormat replaceOccurrencesOfString:@"d" withString:@"dd"
options: 0 range:NSMakeRange(0, [dateFormat length])];
Unrestricted replacement of meta-characters
On 11 Aug 2009, at 19:53, Chris Arnaiz wrote:
I've been struggling to control the behavior of a NSTableView while
editing cells.
[snip]
My goal is to prevent the user from leaving a cell (mouse click, tab
key, enter key, etc) before they provide a valid value for that entry.
Hi Chris,
Rat
Figured out one way to get the desired result. But really don't like
it. I'd much rather have NSLocal tell me if day or months value should
go first.
Anyway, here it goes:
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init]
autorelease];
[dateFormatter setFo
Hi,
I've been struggling to control the behavior of a NSTableView while
editing cells.
The table is a simple ID number / description list.
Editing an existing entry is okay, but my problem is dealing with new
entries.
My goal is to prevent the user from leaving a cell (mouse click, tab
ke
Greetings LA CocoaHeads.
This Thursday 8/13, Niilo Tippler will be showing some graphic
experiments that he built in Flash - stuff that demonstrates some
physics, springing, gravity, etc. - and ported over to the iPhone,
explaining how they work and the differences he found between the tw
Luke,
Thanks, you've gotten me 98% of the way there! I created a
UITabBarController subclass and it works great with one little hiccup.
When I rotate to landscape to show the coverflow view from either of
my table views the 3rd (and last) tab bar item from my portrait view
remains at t
SOLVED!
My stupid error: passing address of value instead of just value.
Thanks very much for your help. Character displays correctly.
On Aug 11, 2009, at 1:30 PM, Daniel Child wrote:
Thank you. I think I'm almost there, though I'm getting incorrect
values. I tried both %c and %C. These yi
Take the usual example of an Employee entity. The employees are shown in a one
column table view through an NSArrayController.
Employee has one 'name' attribute.
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 befor
Daniel Child wrote:
NSString *strc = [NSString stringWithFormat: @"%c", &value];
...
NSString *strC = [NSString stringWithFormat: @"%C", &value];
These are both wrong. Remove the & before value.
http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/
Articles/formatSpecifiers.html
My current project needs an agent to run whenever a user is logged in.
A LaunchAgent would be perfect for this, and in 10.5, it is.
If I can't use a LaunchAgent on 10.4, the alternative isn't so
appealing:
* I'd need to use barely-supported procedures to install a global
login item.
* The
On Aug 11, 2009, at 10:31 AM, DeNigris Sean wrote:
What Alastar said; you have free reign over argv/argc prior to
calling NSApplicationMain().
Duh! You're right, I will just process them myself! I don't know
why I was so attached to making NSUserDefaults do what I wanted it
too - probabl
What Alastar said; you have free reign over argv/argc prior to
calling NSApplicationMain().
Duh! You're right, I will just process them myself! I don't know why
I was so attached to making NSUserDefaults do what I wanted it too -
probably lack of sleep and frustration with the documentati
Thank you. I think I'm almost there, though I'm getting incorrect
values. I tried both %c and %C. These yield, respectively, î and ,
which are incorrect.
2009-08-11 13:24:58.879 ParseTest[566:10b] The num is U+4E01
2009-08-11 13:24:58.889 ParseTest[566:10b] codeItself is 4E01
2009-08-11 13:
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) handleTimer: (NSTimer *) aTimer
{
// ...
On Aug 11, 2009, at 10:04 AM, Kyle Sluder wrote:
On Tue, Aug 11, 2009 at 9:47 AM, Alastair
Houghton wrote:
If you want to process the command line arguments, you can either
do so from
your main() function, before calling NSApplicationMain(), or you
can use
NSProcessInfo to examine them once
The default UITabBarController only does autorotation if all of its
child view controllers support autorotation to the relevant
orientation. If you're interested in changing this behavior, you'll
want to subclass UITabBarController.
Luke
On Aug 11, 2009, at 9:56 AM, Bob Barnes wrote:
Hi
Can you use separate formatters, one for the date, another for the
time, and just concatenate the resulting strings?
On Aug 11, 2009, at 09:51:59, Houdah - ML Pierre Bernard wrote:
Hi Sean,
I want to respect the user's locale, yet ignore his/her preferences
as to formatting.
I thought ab
There are cases where that's totally appropriate. Maybe in a report it
requires a leading zero. You still want to respect the user's settings
in all other areas.
On Aug 11, 2009, at 11:48 AM, Sean McBride wrote:
On 8/11/09 6:39 PM, Houdah - ML Pierre Bernard said:
I am trying to format dat
Hey all,
Ok, I have figured it out. Running as root did the trick. After this
worked, I wondered if I had left the enable assistive devices checkbox off
from a prior experiment, and behold it was off! My bad on that (and I even
said it was on in my original post).
I went back and read the
On Tue, Aug 11, 2009 at 9:47 AM, Alastair
Houghton wrote:
> If you want to process the command line arguments, you can either do so from
> your main() function, before calling NSApplicationMain(), or you can use
> NSProcessInfo to examine them once your app is running.
I believe I suggested that a
On 11 Aug 2009, at 9:47 AM, Alastair Houghton wrote:
On 11 Aug 2009, at 17:14, DeNigris Sean wrote:
If the command line is "MyApp -x -100 -y 100", NSUserDefaults
does not recognize the -100 as the value of the x argument - it
sets x to 0. If the '-' is removed, everything is fine. Is
t
On Aug 11, 2009, at 9:14 AM, DeNigris Sean wrote:
NSUserDefaults *args = [NSUserDefaults standardUserDefaults];
int x = [args integerForKey:@"x"];
int y = [args integerForKey:@"y"];
If the command line is "MyApp -x -100 -y 100", NSUserDefaults does
not recognize the -100 as the
Hi all,
I have an app with 3 primary views, 2 of which are table views
when in portrait mode, but display as full screen coverflow style in
landscape mode. I originally created a 3rd table view to serve as the
initial view as a way to get to the 3 main views with the intent I
would mig
Hi Sean,
I want to respect the user's locale, yet ignore his/her preferences as
to formatting.
I thought about modifying the format I get from the standard styles. I
would however expect NSLocale to know the correct order of elements in
the date format.
Pierre
So you want to use the us
On 8/11/09 6:39 PM, Houdah - ML Pierre Bernard said:
>I am trying to format dates for display. So far I have been using this
>formatter:
>
> NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init]
>autorelease];
>
> [dateFormatter setFormatterBehavior:NSDateFormatterBeh
On 11 Aug 2009, at 17:14, DeNigris Sean wrote:
If the command line is "MyApp -x -100 -y 100", NSUserDefaults
does not recognize the -100 as the value of the x argument - it
sets x to 0. If the '-' is removed, everything is fine. Is this
a bug? Is there a way around?
Yes-- -100 is parse
Hi!
I am trying to format dates for display. So far I have been using this
formatter:
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init]
autorelease];
[dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[dateFormatter setDateStyle:NSDat
In main.m:
NSUserDefaults *args = [NSUserDefaults standardUserDefaults];
int x = [args integerForKey:@"x"];
int y = [args integerForKey:@"y"];
If the command line is "MyApp -x -100 -y 100", NSUserDefaults does
not recognize the -100 as the value of the x argument - it sets x
t
On 11/ago/09, at 09:03, Uli Kusterer wrote:
You probably want to do the pattern phase thing Rob suggested, but
just for completeness' sake, there's a flipped property on NSImage
that you could use to fix the upside-down part of this new problem.
Yes I know but I need to use the pattern pha
On 11 Aug 2009, at 08:00, Uli Kusterer wrote:
On Aug 10, 2009, at 6:04 PM, Christopher Campbell Jensen wrote:
I am sure I am just missing a single line of code, but I can't
understand the following behavior:
This code is where the issue occours:
- (void)refreshButtonsEnabledState
{
NSLog(@"%
On Aug 11, 2009, at 7:40 AM, Daniel Child wrote:
Unihan.txt provides text files showing characters in the format U
+.
If I scan these in, naturally I can obtain the NSString
representation .
But I need to convert this text to genuine unichars OR NSStrings
(the actual characters repr
On 11 Aug 2009, at 15:40, Daniel Child wrote:
Unihan.txt provides text files showing characters in the format U
+.
If I scan these in, naturally I can obtain the NSString
representation .
But I need to convert this text to genuine unichars OR NSStrings
(the actual characters represen
I'm a fan of IB for layout as well.
Luke
On Aug 11, 2009, at 7:57 AM, Sean Kline wrote:
I personally like starting with Interface Builder and supplementing
with code if you want to do non-standard things, but it comes down
to what makes you comfortable. Interface Builder can save a lot of
I personally like starting with Interface Builder and supplementing with
code if you want to do non-standard things, but it comes down to what makes
you comfortable. Interface Builder can save a lot of time, I think.
On Tue, Aug 11, 2009 at 10:50 AM, Ronnie B wrote:
> Thanks Sean and Luke.
>
>
Thanks Sean and Luke.
What is a better approach: IB or in code in this case?
On Tue, Aug 11, 2009 at 10:48 AM, Luke Hiesterman wrote:
> Sounds like you know the percentages you want. Just get the superview's
> bounds and calculate your frames using percentages of those bounds. Update
> when ori
Sounds like you know the percentages you want. Just get the
superview's bounds and calculate your frames using percentages of
those bounds. Update when orientation changes. Or have subviews auto
resize.
Luke
Sent from my iPhone.
On Aug 11, 2009, at 7:34 AM, Sean Kline wrote:
Are you hav
I am experiencing some strange subview appearance issues, but it may be
unrelated. You may want to take a look at this post by Marcus Zarra, which
may be useful:
http://www.cimgf.com/2008/03/03/core-animation-tutorial-wizard-dialog-with-transitions/
Regards,
Sean
On Sun, Aug 9, 2009 at 9:54 AM,
Unihan.txt provides text files showing characters in the format U+.
If I scan these in, naturally I can obtain the NSString representation
.
But I need to convert this text to genuine unichars OR NSStrings (the
actual characters represented).
Two questions:
1. I didn't see any relev
Are you having difficulty laying this out in Interface Builder? It seems
rather straight forward from what you describe.
Regards,
Sean
On Tue, Aug 11, 2009 at 10:14 AM, Ronnie B wrote:
> Hi list.
>
> I need to create a rather complex view containing the following from top to
> bottom:
>
> A sub
Hi list.
I need to create a rather complex view containing the following from top to
bottom:
A subview about 20p in height;
Two rows of buttons three in each row (both taking a third of a space)
A table view taking about a third of a space
An add banner
I am wondering how this is done. I need t
Lead Engineer, iPhone Applications
Standard Nine Inc.
San Francisco, CA
We're a small startup looking to augment our founding team with passionate,
talented engineers who will help us build the world's first end-to-end
platform for digital learning content distribution. Our founding team is
ex-Har
On 8/11/09 8:09 AM, Uli Kusterer said:
>> NSSound initWithContentsOfFile:byReference: should do it.
>
> There's also a PlayThemeSound() API in Carbon.framework's
>Appearance.h. There's a comment in that header indicating that it
>wasn't implemented for a while, and I haven't tried whether it work
The next meeting of CocoaHeads-NYC will be this Thursday, 8/13, from
6:00PM to 8:00PM at Tekserve. Alex McAuley will talk about Bonjour.
As usual, please bring Cocoa programming questions and see if any
among us can help. We can put your code up on the big screen if you
like. If you're w
Kyle, please note that question was "Can I use the same method for
*UIImage*or NSImage also?
"
John, you are right.
Regards,
Parag
On Tue, Aug 11, 2009 at 1:13 AM, John Baldwin wrote:
> I took this to mean that NSImage conforms to NSCoding and therefore can be
> archived, whereas UIImage does no
On Aug 7, 2009, at 7:08 AM, Shashanka L wrote:
Ex: I can get the Trash sound at the location : "/System/Library/
components/coreaudio.component/contents/Resources/SystemSounds/
finder/"
And I can use it as :
NSSound *deleteSound;
deleteSound = [NSSound soundNamed: @"drag to t
On Aug 10, 2009, at 12:18 AM, Mirko Viviani wrote:
I've tried to vertically flip the drawing context but the pattern is
always drawn upside-down from the
bottom-left corner.
You probably want to do the pattern phase thing Rob suggested, but
just for completeness' sake, there's a flipped pr
On Aug 11, 2009, at 8:47 AM, Kirk Swenson wrote:
As the comment suggests, myTextFieldEditor is an instance variable.
It's released in the dealloc method. It's worth pointing out that
according to the documentation, "This method may be called multiple
times while a control is first responder.
61 matches
Mail list logo