Dear Roland King:
I admit I am new to iPhone and did read that book. which I mentioned.
In future I will try not to ask before googling.
Best regards
Agha
On Aug 25, 2009, at 9:51 PM, Roland King wrote:
Do you ever try reading any documentation before you post your
random questions to the list
I appreciate the responses, and I think Kyle nailed it. It just
doesn't work on a black background. I wasn't looking to change the
user's preferences, just the way the selection was handled in this
particular part of the app. I dug a little further, and it looks like
you're right Graham. Th
On Aug 25, 2009, at 9:41 PM, Agha Khan wrote:
HI:
Reading iPhone Developer's Cookbook I realized we do not need a nib
file.
You should use nib files unless it doesn't make sense to do so. For
OpenGL apps in particular, nibs can just be a nuisance. But IB is the
Cocoa way. If you decide
Do you ever try reading any documentation before you post your random
questions to the list?
go read this
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/UIApplicationMain
and that
http://developer.appl
HI:
Reading iPhone Developer's Cookbook I realized we do not need a nib
file.
The author was developing all applications without nib files.
It worked fine with OS 2.2.
Toady I complied his first program and got this error message.
2009-08-25 21:32:56.428 HelloWorld[2770:20b] Failed to load
N
On 2009 Aug 25, at 16:43, Jeff Johnson wrote:
http://lapcatsoftware.com/blog/2007/07/10/working-without-a-nib-part-5-open-recent-menu/
So, maybe Interface Builder sends
_setMenuName:@"NSRecentDocumentsMenu" to the submenu of its "Open
Recent" menu item.
Good work figuring it out, Jeff.
On Fri, 21 Aug 2009 18:19:32 -0500, Brant Sears said:
>Hi. I'm trying to get a Help Book to open for my application.
This problem is nearly always caused by DNFD (Did Not Follow Directions).
Apple has provided the directions. Follow them! Follow them very, very
exactly.
I've made a tutorial movi
On Aug 23, 2009, at 10:57 PM, J J wrote:
I'm trying to write an app that will page through text .. I'm trying
to grab the text, find out how much with fit on a page, write the
text to a view (page), then perhaps paginate the pages around it
onto other views to be ready as needed.
Anyone ha
On Aug 25, 2009, at 6:28 PM, Graham Cox wrote:
I'd suggest you don't. The colour is set by the user in their System
Preferences. Encountering a different colour leads to confusion
because sometimes unusual colours have specific meanings. In your
case it doesn't, so let the user's preferenc
On 26/08/2009, at 6:23 AM, bryscomat wrote:
How do I change the selection highlight color for an NSTextFieldCell
being edited? I'm using a transparent window and would like to
change the highlight to a light gray instead of the default light
blue,
I'd suggest you don't. The colour is se
On 26/08/2009, at 11:00 AM, Timothy Reaves wrote:
Does anyone have any idea why this is going on? The trailing
spaces
are being counted correctly.
[scanner setCharactersToBeSkipped:nil];
By default the scanner skips spaces - sounds like you don't want it to
do that.
--Graham
__
Hi all,
I have a project where I will be drawing nothing more than simple
circles with lines connecting them. At some point, I will be animating
these lines and circles to move them to another position.
I would like to:
(1) Display these, animated, on the screen; and
(2) Render the animat
I have a character set; I've tried both
NSCharacterSet *newlineSet = [NSCharacterSet
characterSetWithCharactersInString:@"\n"];
and
NSCharacterSet *newlineSet = [NSCharacterSet newlineCharacterSet];
I use this to read lines from a file, like so:
while ([scanner scanUpToCharactersFromSet:
I haven't tried it, but this should work:
NSAttributedString* original = whatever;
NSMutableAttributedString* normalized = [[original mutableCopy]
autorelease];
CFMutableStringRef str = (CFMutableStringRef)[original
mutableString];
CFStringNormalize(str, kCFStringNormalizat
Note that there is an issue with this approach, which is that
attribute runs that start in the middle of a grapheme cluster might
result in odd behaviour wrt normalisation. However, it generally
doesn't make sense to have such an attribute run (it's the
equivalent of asking for e.g. a bold
NSString has methods for normalizing the content using
Normalization Forms D, KD, C, and KC. NSAttributedString does not.
Is there any way to normalize an NSAttributedString?
I haven't tried it, but this should work:
NSAttributedString* original = whatever;
NSMutableAttributedString
On Aug 25, 2009, at 6:23 PM, Jerry Krinock wrote:
On 2009 Aug 25, at 08:38, I. Savant wrote:
On Aug 25, 2009, at 11:33 AM, Jerry Krinock wrote:
Is there some magic under the covers? How does Cocoa know which
menu item is "Open Recent"?
What about its title? :-)
No, that can't be, becau
On 26/08/2009, at 1:02 AM, Vadim Shpakovski wrote:
I'd like to have the same behavior of special items as it's done in
the Things application.
I mean Logbook and Trash items on the picture placed under this
link: http://tinyurl.com/lhctza
Please advise any way to implement the same funct
On Tue, Aug 25, 2009 at 4:23 PM, Jerry Krinock wrote:
> Can anyone explain the mystery, or is it indeed "magic" under the covers?
It might look for a menu item that's wired to -openDocument:.
Or it might be one of those special private NSMenuItem subclasses that
I've seen floating around in the s
On 2009 Aug 25, at 08:38, I. Savant wrote:
On Aug 25, 2009, at 11:33 AM, Jerry Krinock wrote:
Is there some magic under the covers? How does Cocoa know which
menu item is "Open Recent"?
What about its title? :-)
No, that can't be, because a title has to be localized. Actually,
inste
On Aug 25, 2009, at 7:19 AM, Ruotger Skupin wrote:
Am 24.08.2009 um 23:13 schrieb Ben Trumbull:
When I use setRelationshipKeyPathsForPrefetching the fetch throws:
-[NSSQLAttribute inverseRelationship]: unrecognized selector sent
to instance 0x10ee150
Can you provide the entire stack tra
Could you try running with -com.apple.CoreData.SQLDebug 3?
I'm curious as to what's trying to bind that's causing this:
binding not implemented for this SQLType 7
Cheers,
+Melissa
On Aug 25, 2009, at 14:12, Greg Hoover wrote:
Hi Melissa,
Thanks for you response.
The problem actually jus
On 8/25/09 2:44 PM, Kyle Sluder said:
>> Let's say you have an NSPersistentDocument-based app-- you do some work
>> and you save successfully. Now let's say the app has a bug where its UI
>> allows the user to set a value outside the allowable range of one of
>> your NSManagedObjects. When you t
On Tue, Aug 25, 2009 at 2:37 PM, Sean McBride wrote:
> Let's say you have an NSPersistentDocument-based app-- you do some work
> and you save successfully. Now let's say the app has a bug where its UI
> allows the user to set a value outside the allowable range of one of
> your NSManagedObjects.
Hi all,
A warning to NSPersistentDocument users
Let's say you have an NSPersistentDocument-based app-- you do some work
and you save successfully. Now let's say the app has a bug where its UI
allows the user to set a value outside the allowable range of one of
your NSManagedObjects. When yo
Hi Melissa,
Thanks for you response.
The problem actually just started showing up in 10.6 (wasn't a problem
in 10.4 or 10.5). :-/
The hang stopped for a few launches and reverted to its previous
output: "binding not implemented for SQLType 7". But then it happened
again... The SQL file
Thanks everybody. And yes I saw it in IB.
Best,
Behrang Saeedzadeh
---
http://my.opera.com/behrangsa
http://twitter.com/behrangsa
On Wed, Aug 26, 2009 at 2:48 AM, Andrew Merenbach wrote:
>
> On Aug 24, 2009, at 12:57 AM, Behrang Saeedzadeh wrote:
>
> Hi all,
>>
>> Wh
How do I change the selection highlight color for an NSTextFieldCell
being edited? I'm using a transparent window and would like to change
the highlight to a light gray instead of the default light blue,
___
Cocoa-dev mailing list (Cocoa-dev@lists.a
On Aug 25, 2009, at 02:19, Greg Hoover wrote:
I've run into a hang in CoreData save. I'm the single coordinator,
multiple object contexts threading model and a SQL store (though it
seems to happen with XML as well). The hang occurs inside the
NSSQLCore and seems to just loop endlessly.
On Aug 25, 2009, at 6:37 AM, Andy Lee wrote:
First thing I checked. :)
A quick look on StackOverflow suggests the code should go into
viewDidAppear:animated:. Itching to try this but I have to run to
work...
-viewDidLoad only means that the view controller's view was loaded, it
does n
On 25 Aug 2009, at 19:50, McLaughlin, Michael P. wrote:
I have an NSOperation app (simulation) executing one timestep at a
time.
The threads are working fairly well but the running output is
supposed to be
drawn as a color-coded map every 10 timesteps.
How fast is this in Hertz? If you're
On 25 Aug 2009, at 18:02, Ross Carter wrote:
I'd love to do this:
Archiving:
1. Normalize the source attributed string.
2. Archive its string content and its attribute information.
Unarchiving:
3. Create a new string from the archived data and normalize it.
4. Created a new attributed string f
When my app ran on Tiger, there was an NSInvalidArgumentException with
the reason:
"-observeValueForKeyPath:ofObject:change:context: only defined for
abstract class. Define -[NSCFString
observeValueForKeyPath:ofObject:change:context:]!"
That seemed to happen when I had 2 enabled bindings on
I have an NSOperation app (simulation) executing one timestep at a time.
The threads are working fairly well but the running output is supposed to be
drawn as a color-coded map every 10 timesteps.
It seems that a window update is a low priority task because my threads are
running and continually s
Hey,
So, to translate from a string to a keycode, I've been using the
UCKeyboardLayout. But, on some keyboard layouts (only Japanese so
far), I get a NULL pointer for the layout, and then the app crashes.
Here's the code:
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource
I have a NSTreeController which is connected to a NSOutlineView. I
wish to have links to specific entries in the NSTreeController. With
these links I want to select those items. I therefore use the
NSIndexPath. Unfortunately the NSIndexPath becomes invalid if the sort
order is changed by th
I need to archive it as xml.
On Aug 25, 2009, at 1:06 PM, Dave DeLong wrote:
What's wrong with just archiving it and unarchiving it?
NSAttributedString conforms to the NSCoding protocol, so you
shouldn't need to do any custom archiving yourself. Just use an
NSKeyed(Un)Archiver.
Dave
O
Note that it can also be defined in Interface Builder.
Le 25 août 2009 à 18:50, bryscomat a écrit :
Nevermind. It's the [NSWindow setInitialFirstResponder:] method.
Duh.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
What's wrong with just archiving it and unarchiving it?
NSAttributedString conforms to the NSCoding protocol, so you shouldn't
need to do any custom archiving yourself. Just use an NSKeyed(Un)
Archiver.
Dave
On Aug 25, 2009, at 11:02 AM, Ross Carter wrote:
NSString has methods for normal
NSString has methods for normalizing the content using Normalization
Forms D, KD, C, and KC. NSAttributedString does not.
Is there any way to normalize an NSAttributedString?
I need to archive an NSAttributedString by extracting its string,
attributes, and the attribute ranges. This is easy
On Aug 24, 2009, at 6:02 PM, Graham Cox wrote:
On 25/08/2009, at 10:33 AM, Michael de Haan wrote:
So, 2 quick questions.
1) Is what I am seeing expected behavior or am I doing something
wrong.
2) Although not strictly speaking a cocoa question, would better
design be to collect all "v
Nevermind. It's the [NSWindow setInitialFirstResponder:] method.
Duh.
___
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-dev-admins(at)lists.apple.
On Aug 24, 2009, at 12:57 AM, Behrang Saeedzadeh wrote:
Hi all,
What's the purpose of the "fax" received action in NSTableView and
is it
documented somewhere at all? Did a quick search
and couldn't find its documentation.
Best regards,
Behrang Saeedzadeh
I asked essentially this question
Hey all. Quick question: How do I prevent a window from initially
making an NSTextField the firstResponder? I do not want any controls
to automatically begin editing.
Thanks.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
On Aug 25, 2009, at 9:30 AM, Kyle Sluder wrote:
On Tue, Aug 25, 2009 at 9:11 AM, Corbin Dunn wrote:
However, it will work (and it is a recommended way to solve this
problem),
since the tableView will first acquire a
"preparedCellAtColumn:row:", which
calls tableView:willDisplayCell:. So, an
On Tue, Aug 25, 2009 at 9:11 AM, Corbin Dunn wrote:
> However, it will work (and it is a recommended way to solve this problem),
> since the tableView will first acquire a "preparedCellAtColumn:row:", which
> calls tableView:willDisplayCell:. So, any menu you have set there will
> correctly is used
On Aug 25, 2009, at 8:58 AM, Kyle Sluder wrote:
On Tue, Aug 25, 2009 at 8:35 AM, Jason Foreman
wrote:
Another way is to implement the
-tableView:willDisplayCell:forTableColumn:row: delegate method and
assign
the cell's menu there.
Table views reuse their cells. You can't do a per-row me
On Aug 25, 2009, at 8:46 AM, Jason Foreman wrote:
On Aug 24, 2009, at 10:26 PM, Michael de Haan wrote:
-applicationWillTerminate: doesn't magically get called.
NSApplication posts this notification to the default notification
center. NSApplication also automatically signs its delegate up fo
On Tue, Aug 25, 2009 at 8:41 AM, Corbin Dunn wrote:
> Or, populate the menu dynamically.
This is probably the best idea. No subclassing of NSTableView required.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post a
On Tue, Aug 25, 2009 at 8:35 AM, Jason Foreman wrote:
> Another way is to implement the
> -tableView:willDisplayCell:forTableColumn:row: delegate method and assign
> the cell's menu there.
Table views reuse their cells. You can't do a per-row menu by setting
the cell menu, because there's only on
On Aug 24, 2009, at 10:26 PM, Michael de Haan wrote:
-applicationWillTerminate: doesn't magically get called.
NSApplication posts this notification to the default notification
center. NSApplication also automatically signs its delegate up for
this notification.
Kyle, from the "Cocoa Fundame
On Aug 25, 2009, at 8:35 AM, Jason Foreman wrote:
On Aug 24, 2009, at 7:44 PM, Kyle Sluder wrote:
On Mon, Aug 24, 2009 at 5:39 PM, Jack Carbaugh
wrote:
My question is how do i change the contextual menu when the user
right
clicks.
Override -menuForEvent:.
Another way is to implement
On Aug 25, 2009, at 11:33 AM, Jerry Krinock wrote:
Is there some magic under the covers? How does Cocoa know which
menu item is "Open Recent"?
What about its title? :-)
It's possible it looks for it by name (and also possible it only
cares about the first one it finds). In what order
On Aug 24, 2009, at 7:44 PM, Kyle Sluder wrote:
On Mon, Aug 24, 2009 at 5:39 PM, Jack Carbaugh
wrote:
My question is how do i change the contextual menu when the user
right
clicks.
Override -menuForEvent:.
Another way is to implement the -
tableView:willDisplayCell:forTableColumn:row:
Today I wanted to add a menu item with a submenu similar to "Open
Recent". For example, Xcode has:
...
Open Recent File ->
Open Recent Document ->
...
For convenience, I copy/paste/duplicated the "Open Recent" menu item,
connected everything, wrote my code, but then found that m
Hi,
I'd like to have the same behavior of special items as it's done in
the Things application.
I mean Logbook and Trash items on the picture placed under this link:
http://tinyurl.com/lhctza
Please advise any way to implement the same functionality in the
sidebar tree.
I feel that spec
Am 24.08.2009 um 23:13 schrieb Ben Trumbull:
When I use setRelationshipKeyPathsForPrefetching the fetch throws:
-[NSSQLAttribute inverseRelationship]: unrecognized selector sent
to instance 0x10ee150
Can you provide the entire stack trace at this point ? gdb use
future-break objc_except
On Aug 24, 2009, at 4:42 PM, Gill Bates wrote:
Hi All,
currently we have three kinds of touch event:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{ NSLog(@"touchesBegan"); }
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{ NSLog(@"touchesMoved"); }
- (v
The core question:
Is it still the best practice to have conceptually same images of
different sizes in different files, e.g. Foo9x9.tiff, Foo32x32.tiff?
icns isn't an option because they aren't all the standard icns sizes,
and several places in the docs seem to discourage lumping them
to
Obvious question is, then, where are you calling it?
Luke
On Aug 25, 2009, at 6:37 AM, Andy Lee wrote:
On Aug 25, 2009, at 9:34 AM, Luke the Hiesterman wrote:
On Aug 25, 2009, at 6:33 AM, Andy Lee wrote:
You seem to be right about this part -- becomeFirstResponder
doesn't bring up the k
On Aug 25, 2009, at 9:34 AM, Luke the Hiesterman wrote:
On Aug 25, 2009, at 6:33 AM, Andy Lee wrote:
You seem to be right about this part -- becomeFirstResponder
doesn't bring up the keyboard for me, or I'm doing something wrong.
Are you sure the text field isn't nil when you're calling t
On Aug 25, 2009, at 6:33 AM, Andy Lee wrote:
You seem to be right about this part -- becomeFirstResponder doesn't
bring up the keyboard for me, or I'm doing something wrong.
Are you sure the text field isn't nil when you're calling this? Maybe
it's loaded from a nib and you forgot to wire
On Aug 25, 2009, at 9:02 AM, Andy Lee wrote:
On Aug 25, 2009, at 8:28 AM, Brian Bruinewoud wrote:
On 25/08/2009, at 20:42 , Georg C. Brückmann wrote:
On 25.08.2009, at 12:30, Brian Bruinewoud wrote:
I have a simple view that contains a UITextField and a UIButton.
The user will most often
___
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-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com
On Aug 25, 2009, at 8:29 AM, Graham Cox wrote:
On 24/08/2009, at 5:57 PM, Behrang Saeedzadeh wrote:
Hi all,
What's the purpose of the "fax" received action in NSTableView and
is it
documented somewhere at all? Did a quick search
and couldn't find its documentation.
Not sure where you'
On Aug 25, 2009, at 8:28 AM, Brian Bruinewoud wrote:
On 25/08/2009, at 20:42 , Georg C. Brückmann wrote:
On 25.08.2009, at 12:30, Brian Bruinewoud wrote:
I have a simple view that contains a UITextField and a UIButton.
The user will most often want to type text and ignore the button.
Is th
On 24/08/2009, at 5:57 PM, Behrang Saeedzadeh wrote:
Hi all,
What's the purpose of the "fax" received action in NSTableView and
is it
documented somewhere at all? Did a quick search
and couldn't find its documentation.
Not sure where you're using this as it's not in my headers for
NSTa
On 25/08/2009, at 20:42 , Georg C. Brückmann wrote:
On 25.08.2009, at 12:30, Brian Bruinewoud wrote:
I have a simple view that contains a UITextField and a UIButton.
The user will most often want to type text and ignore the button.
Is there some way I can make the keyboard appear immediate
On 25.08.2009, at 12:30, Brian Bruinewoud wrote:
I have a simple view that contains a UITextField and a UIButton. The
user will most often want to type text and ignore the button. Is
there some way I can make the keyboard appear immediately that view
is shown? I can't find anything in IB an
All,
I have a simple view that contains a UITextField and a UIButton. The
user will most often want to type text and ignore the button. Is there
some way I can make the keyboard appear immediately that view is
shown? I can't find anything in IB and reading about UITextField,
UIView, UIWin
I've run into a hang in CoreData save. I'm the single coordinator,
multiple object contexts threading model and a SQL store (though it
seems to happen with XML as well). The hang occurs inside the
NSSQLCore and seems to just loop endlessly. The SQL output supports
this. Requests perform
71 matches
Mail list logo