On Jul 2, 2009, at 12:02 AM, mmalc Crawford wrote:
On Jul 1, 2009, at 4:33 PM, Bill Cheeseman wrote:
But it doesn't work at all for user controls in general, and the
docs are misleading (i.e., wrong) about that.
although I'm not sure I'd agree with Bill that the docs are *wrong*,
they ce
Since NSComparisonResult is an ordered enum typedef, I'd like to
know if it's safe to write
the following code to test for 'greater or equal to':
// This would cover both NSOrderAscending and NSOrderSame
if ([obj1 compare:obj2] < NSOrderDescending) {
I'd just use "isGreaterThanOrEqualTo:", wh
On Wed, Jul 1, 2009 at 11:20 PM, Scott Thompson wrote:
> If I understand... you're going all the way to NSGraphicsContext just to flip
> the coordinate system? That's a long row to hoe :-).
It would be, but I'm actually going to NSGraphicsContext so that I can
draw NSImages and NSStrings on the
On Jul 1, 2009, at 9:15 PM, Keary Suska wrote:
So I think you are claiming this works because the documentation
says so. I'm saying the documentation is wrong because it doesn't
work. I would love to see a project proving me wrong. Can you show
me one?
No, I am saying that it works as ad
Folks;
10.5.7 - 10.5 SDK - target 10.4
I have a managed core data entity working pretty nicely.
I can display values in a tableView blah-blah
Clicking on table column headers does as expected IN RELEASE versions
for both Tiger and Leopard.
However, in the debugger a click on table col
On Jul 2, 2009, at 01:10, Steve Cronin wrote:
10.5.7 - 10.5 SDK - target 10.4
I have a managed core data entity working pretty nicely.
I can display values in a tableView blah-blah
Clicking on table column headers does as expected IN RELEASE
versions for both Tiger and Leopard.
Howev
Thanks everyone for your input.
Interesting to see that I was wrong about selecting multiple files in
the finder being a common task.
Maybe a little background will shed some light on why I was trying to
write this program:
Currently I am primarily doing visual effects (digital compositing
On 02/07/2009, at 11:57 AM, Adam R. Maxwell wrote:
On Jul 1, 2009, at 6:40 PM, Graham Cox wrote:
On 02/07/2009, at 10:09 AM, Peter Zegelin wrote:
Problem with this is there is no obvious concordance ( that I can
see) between a row and its rectangle.
Wouldn't scrolling affect all this?
On a related sidenote, I saw that the Finder AppleScript dictionary has
a couple of properties for its folder type that seem to deal with list
views:
"completely expanded", which has the description of:
"(NOT AVAILABLE YET) Are the container and all of its children opened as
outlines? (can
Hi all,
Suppose that all of the files are .mov file in a folder. Now in my App, I
want to realize that it can
extract the names of all the movie files in the folder. At the same time, it
displays the names in the table
view of my application when the application launches every time.
Could
http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileManager/enumeratorAtPath
:
In the above example's if statement inside the while loop, switch the
extension to .mov. then if it matches I would add th
On Jul 1, 2009, at 9:34 AM, Ken Thomases wrote:
On Jul 1, 2009, at 11:26 AM, David Blanton wrote:
in .h file
NSMutableArray *m_sources;
[...]
m_sources = [volumes stringsByAppendingPaths:[defaultManager
directoryContentsAtPath:volumes]];
-stringsByAppendingPaths: returns a
Hi,
I¹ve set up my app with a document type (see below), moved the app to
Applications, logged out, logged back in, created a document of this type,
but the setting the doc¹s icon and association with my app does not occur
automatically, only when I manually do Get Info and set it. What am I
missi
Hello,
I've created a simple application with an NSTableView. I have written a
delegate for this table,
numberOfRowsInTableView:objectValueForTableColumn:row:, that returns the number
of rows in the table when requested.
My application uses the table view to display hexadecimal data on a flas
I need to create a filebrowser of sorts that allows a user to select
an image from the iPhone/iPod images directory. The same one that
iPhone camera images are saved to preferably. Is there s built in
method of doing this or perhaps some guidance I could get on how to
select and set images
On Thu, Jul 2, 2009 at 10:51 AM, Chris Carson wrote:
>
> Hello,
>
> I've created a simple application with an NSTableView. I have written a
> delegate for this table,
> numberOfRowsInTableView:objectValueForTableColumn:row:, that returns the
> number of rows in the table when requested.
>
> My a
Check out the UIImagePickerController class.
Dave
On Jul 2, 2009, at 9:33 AM, Development wrote:
I need to create a filebrowser of sorts that allows a user to select
an image from the iPhone/iPod images directory. The same one that
iPhone camera images are saved to preferably. Is there s bu
Creating your own file browser for photos on the phone is not
supported. An excellent one has already been written for you, though.
See UIImagePickerController.
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerController/UIImag
On Wed, Jul 1, 2009 at 11:18 PM, Marco S Hyman wrote:
> On Jul 1, 2009, at 6:50 PM, Adam R. Maxwell wrote:
>
>> Well, I generally avoid bindings, since I can't comment nib/xib files, and
>> it takes too long to reverse engineer my own (or worse, someone else's)
>> bindings when I'm doing maintenanc
On Wed, Jul 1, 2009 at 8:09 PM, Peter
Zegelin wrote:
>
> On 01/07/2009, at 6:55 PM, Dado Colussi wrote:
>
>> Subclass NSTableView and implement your special drawing in -
>> (void)drawBackgroundInClipRect:(NSRect)clipRect.
>>
>> /Dado
>
> Problem with this is there is no obvious concordance ( that I
I had this problem but it had to do with calculating the height for
the row and returning a float value. When i made sure i returned an
int this went away. Not sure if you doing that.
Scott
On Jul 2, 2009, at 7:51 AM, Chris Carson wrote:
Hello,
I've created a simple application with an
On Thursday, July 02, 2009, at 03:48AM, "Bill Cheeseman"
wrote:
>I'm not "assuming" that it works with all user controls. The document
>I quoted from says it does, explicitly and in detail, without
>qualification.
This is why in my Radar I suggested the "validated item" terminology to
indic
On Jul 2, 2009, at 1:48 AM, Bill Cheeseman wrote:
I'm not "assuming" that it works with all user controls. The
document I quoted from says it does, explicitly and in detail,
without qualification. All I asked in my original post is whether
I'm correct in concluding that in fact buttons don'
On Thu, Jul 2, 2009 at 7:06 AM, Mac First wrote:
> Note that, if you want a mutable array, you can wrapper the return-result in
> [NSMutableArray arrayWithArray: ... ]
Or use the -mutableCopy method.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev
You could try this if you're lazy... Just call the
presentImagePickerWithSource and choose your source type (camera or
photo library)
- (void)presentImagePickerWithSource:
(UIImagePickerControllerSourceType)sourceType {
pickerController = [[UIImagePickerController alloc]init];
On Thu, Jul 2, 2009 at 7:06 AM, Michael
Domino wrote:
> I¹ve set up my app with a document type (see below), moved the app to
> Applications, logged out, logged back in, created a document of this type,
> but the setting the doc¹s icon and association with my app does not occur
> automatically, onl
On Thu, Jul 2, 2009 at 8:37 AM, Michael Ash wrote:
> On Thu, Jul 2, 2009 at 10:51 AM, Chris Carson wrote:
>>
>> Hello,
>>
>> I've created a simple application with an NSTableView. I have written a
>> delegate for this table,
>> numberOfRowsInTableView:objectValueForTableColumn:row:, that returns
Quincy;
Hey thanks for some useful data!
BUT it is not what is happening in this case.
I have a base class MyManagedObject that all entities are derived from.
MyManagedObject has the - setNilValueForKey: method defined.
I set a breakpoint there and a log message as well. Neither are ever
call
On Thu, Jul 2, 2009 at 3:48 AM, Bill Cheeseman wrote:
> I did find it confusing when I read the NSMenuItem and NSToolbarItem Class
> Reference documents, which say that they conform to the other protocol, the
> NSValidatedUserInterface protocol. But this tends to suggest that NSButton
> will work,
On 2 Jul 2009, at 9:36 AM, Shawn Erickson wrote:
On Thu, Jul 2, 2009 at 8:37 AM, Michael Ash
wrote:
On Thu, Jul 2, 2009 at 10:51 AM, Chris Carson
wrote:
Hello,
I've created a simple application with an NSTableView. I have
written a delegate for this table,
numberOfRowsInTableView:objec
On Jul 2, 2009, at 12:52 PM, Tito Ciuro wrote:
Not to mention that dragging the scroll thumb one pixel will result
in thousands of rows scrolled at once. Simply useless.
Well, yes, but the only real way to avoid that is to design your
application to limit the amount of data presented to t
On 2 Jul 2009, at 9:56 AM, I. Savant wrote:
On Jul 2, 2009, at 12:52 PM, Tito Ciuro wrote:
Not to mention that dragging the scroll thumb one pixel will result
in thousands of rows scrolled at once. Simply useless.
Well, yes, but the only real way to avoid that is to design your
applicati
On Jul 2, 2009, at 1:11 PM, Tito Ciuro wrote:
I totally agree. I would never present anywhere that much info to
the user. It's overwhelming and difficult to navigate through. My
comment referred to a bad approach in design: I was adding another
argument as to why displaying 14 million rows
I've created a simple application with an NSTableView. I have
written a delegate for this table,
numberOfRowsInTableView:objectValueForTableColumn:row:, that returns
the number of rows in the table when requested.
My application uses the table view to display hexadecimal data on a
flash m
I was going to recommend 0xED is a good one too. Very fast and he
appears to be using a custom view of somesort.
Scott
On Jul 2, 2009, at 10:21 AM, Jean-Daniel Dupas wrote:
I've created a simple application with an NSTableView. I have
written a delegate for this table,
numberOfRowsInTable
Hi all,
I'm trying to find somewhere to undo what was done in my NSDocument
subclass' initializer. Specifically, to start/stop KVO observation. It
seemed like 'close' would be a good place.
First, should/must one call super in one's 'close' implementation? It
seems so.
After trying this, I've
On Jul 2, 2009, at 12:24 PM, Keary Suska wrote:
Because the two protocols in question are formal protocols, the
@interface declaration must specify conformance. If it doesn't, then
no assumption of conformance should be made. Pure and simple. Also,
protocol conformance is not inheritable in
Tito Ciuro wrote:
Not to mention that dragging the scroll thumb one pixel will result
in thousands of rows scrolled at once. Simply useless.
Hold down the Option key and drag the thumb. It should "micro
scroll" for as long as Option remains down. This scroller gesture
modifier has been ar
Hi
I am new to Apple programming.
I have UIView and it has CALayer (numberLayer). I would like to write
something at the middle of that layer.
So in my
- (id)initWithFrame:(CGRect)frame function I write somthing like this.
CGRect viewRect = [self bounds];
CGPoint center = CGPointM
On Jul 2, 2009, at 09:41, Steve Cronin wrote:
BUT it is not what is happening in this case.
Do you in fact have a "code" property? On the app delegate? What's
does it's @property (or accessor prototype) look like?
___
Cocoa-dev mailing list (Co
I've been working on some ground station software for controlling
amateur UAV's. I have the basic functionality working, but I'd like to
make it more generic so other people can configure it without having
to recompile.
My thoughts are to have a palette of UI elements, suck as dials,
arti
Hi everybody
Here, a CoreData novice, stumped at a fairly simple issue, a bit under-
documented by apple (Apple under-documenting? uh?).
If anyone can give me a hint, I'll be much in debt.
Well, the thing is about $FETCH_SOURCE and a Fetched property in Core
Data.
I create two entities (x
I've always been taught that one must only create and run AppKit
objects on the main thread. Recently, though, over in objc-language,
http://lists.apple.com/archives/Objc-language/2009/Jul/msg2.html
it was pointed out that the threading Programming Guide seems to say
otherwise:
On Jul 2, 2009, at 10:34, Sean McBride wrote:
I'm trying to find somewhere to undo what was done in my NSDocument
subclass' initializer. Specifically, to start/stop KVO
observation. It
seemed like 'close' would be a good place.
'close' isn't a good place, because it isn't necessarily call
On 2 Jul 2009, at 11:10 AM, Greg Guerin wrote:
Hold down the Option key and drag the thumb. It should "micro
scroll" for as long as Option remains down. This scroller gesture
modifier has been around for a while.
Wow. Never heard about this one before. I wonder how many people know
abou
Hello,
I'm trying to create a private copy of an object, but yet when the
original changes, my copy changes too.
I have an array of dictionaries called spacesData. Then, when I do:
NSDictionary *backup = [[spacesData objectAtIndex:index] copy];
everything is fine, and this one looks as it s
I am looking the sample Dragging views (The iPhone Developer's
Cookbook) where the are N subviews (flowers) are floating inside
UIViewController.
It is a sample and working, but how subview can inform to
UIViewController that the dragging (an event) has finished?
-Agha
On Jul 2, 2009, at 9:40 PM, Agha Khan wrote:
I am looking the sample Dragging views (The iPhone Developer's
Cookbook) where the are N subviews (flowers) are floating inside
UIViewController.
The subviews are not "floating inside" the view controller. Views are
subviews only to other views
Hi Peter
Thanks for the tips. I ended up finding that yes the Service was
appearing but in Finder only. I think the main confusion was between
the steps of having the service appear in the menu and the service
menu item being enabled or not. It looks like a trick to simply
appear is, for
bump bump :-)
Ian.
--
ianpi...@mac.com
07590 685840 | 01926 811383
Begin forwarded message:
From: Ian Piper
Date: 1 July 2009 3:53:52 pmBST
To: Cocoa-dev@lists.apple.com
Subject: Reading and writing rtf(d) files
Hi all,
I have a question about reading and writing file types. I have been
On Thursday, July 02, 2009, at 01:52PM, "Bill Cheeseman"
wrote:
>On Jul 2, 2009, at 12:24 PM, Keary Suska wrote:
>
>> Because the two protocols in question are formal protocols, the
>> @interface declaration must specify conformance. If it doesn't, then
>> no assumption of conformance should
Are there events that I can observe that indicate when the screen lock
has activated/deactivated? I have a background agent that should
really be disabled when the screen is locked...
Thanks for any pointers...
--
Carl Harris
cehar...@vt.edu
___
On Thursday, July 02, 2009, at 11:39AM, "Michael Ash"
wrote:
>On Wed, Jul 1, 2009 at 11:18 PM, Marco S Hyman wrote:
[...]
>> That leads directly to something I've been thinking about as one new to
>> cocoa:
>> how do you document your bindings? Any preferred formats other than a text
>> file st
I have an NSWindowController driving a window, with a view, with
subviews. One of the subviews is an NSView *imageParentView. This
view's only purpose is to provide a frame, a "bounding box" inside
which its subview will be held. It's one and only subview is
NSImageView *imageView.
The
HI
I have saved some objects inside GameArray (type NSMutableArray) and I
would like to change of content of an object inside that array.
GameObj is type of UIView so it has a frame.
GameObj* p = [GameArray objectAtIndex:0];
p.frame = frame;
This works, but this is not changing the content
On Thu, Jul 2, 2009 at 2:25 PM, Andy Lee wrote:
> My first reaction was: "Elegantly put!" But then I thought, isn't *not*
> generating this kind of code one of the reasons we tell people nibs are good?
> Wouldn't a .m be a good place to "document" targets and actions as well?
> And delegates
On Jul 2, 2009, at 4:36 PM, Agha Khan wrote:
This works, but this is not changing the content inside the GameArray.
How this can be done.
Use -replaceObjectAtIndex:withObject:. You are responsible for
maintaining your own arrays; changing a pointer will not change the
contents of the ar
On Jul 1, 2009, at 5:22 PM, Sherm Pendley wrote:
On Wed, Jul 1, 2009 at 7:24 PM,
iseecolors wrote:
I need to support 10.4 in my application, but it uses some Carbon
APIs that
are deprecated in 10.5 and I am using some new 10.5 APIs that
require the
10.5 SDK.
I am sure I have seen this bef
One way that I've seen used is to do this:
BOOL isLeopardOrBetter = YES;
Class gcClass = NSClassFromString(@"NSGarbageCollector");
if (gcClass == nil) { isLeopardOrBetter = NO; }
Cheers,
Dave
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Pl
On Jul 2, 2009, at 14:05, Andy Lee wrote:
Hm, you know what, it seems odd to me that the
NSValidatedUserInterfaceItem protocol doesn't include setEnabled: or
some such. The doc says, "If no responder returns YES, the item is
disabled." But how can the application know it *can* disable the
At 6:57 PM -0700 6/29/09, Martin Wierschin wrote:
i'm not happy that the framework is changing the name of my menu
item from "Show SpellingS" (as i've specified in IB) to "Show
Spelling and Grammar". is there some way to globally "fix" this? (i
know i can provide my overrides of showGuessPanel:
On Jul 2, 2009, at 12:05 PM, Joe Turner wrote:
I'm trying to create a private copy of an object, but yet when the
original changes, my copy changes too.
I have an array of dictionaries called spacesData. Then, when I do:
NSDictionary *backup = [[spacesData objectAtIndex:index] copy];
every
TextEdit sources in /Developer/Examples/AppKit/TextEdit may be
useful. TextEdit's document types are set up to read/write RTF and
RTFD, in addition to a number of other types.
Ali
On Jul 2, 2009, at 14:04 , Ian Piper wrote:
bump bump :-)
Ian.
--
ianpi...@mac.com
07590 685840 | 01926 8113
On Jul 2, 2009, at 4:29 PM, Steve Christensen wrote:
On Jul 1, 2009, at 5:22 PM, Sherm Pendley wrote:
On Wed, Jul 1, 2009 at 7:24 PM,
iseecolors wrote:
I need to support 10.4 in my application, but it uses some Carbon
APIs that
are deprecated in 10.5 and I am using some new 10.5 APIs that
Er, sorry about all the typos in the previous post on this subject.
On Jul 2, 2009, at 16:33, Quincey Morris wrote:
Something (presumabl[y] NSApp) presumabl[y] calls 'update' for the
main NSMenu, and the 'update' calls trickle down to the NSMenuItems,
which then initiate their own validation
On Thu, Jul 2, 2009 at 4:33 PM, Dave DeLong wrote:
> One way that I've seen used is to do this:
>
> BOOL isLeopardOrBetter = YES;
> Class gcClass = NSClassFromString(@"NSGarbageCollector");
> if (gcClass == nil) { isLeopardOrBetter = NO; }
Don't do that. Check for the specific feature that you wan
Our application use Mac OS X spell checker service to do spell check.
here is sample code . [[NSSpellChecker sharedSpellChecker]
checkSpellingOfString:@"hello" startingAt:0];
But the problem is AppleSpell.service can not launch automatically by this
code, so there is always an alert: couldn't conta
This code works just fine for me:
NSLog(@"%@", NSStringFromRange([[NSSpellChecker
sharedSpellChecker] checkSpellingOfString: @"hello, hwo are you
today?" startingAt: 0]));
Which prints '{7, 3}', as expected. I'll go out on a limb and guess
that you're trying to access the spell checker from a
On Thursday, July 02, 2009, at 07:33PM, "Quincey Morris"
wrote:
>I really all makes sense, I think,
I think it makes the most sense if you figure out the validateMenuItem:
mechanism, then figure out the validateToolbarItem: mechanism, then see they're
closely related (no surprise, since menus
Hi everyone,
I'm either doing something wrong, or I've found a bug in
NSPredicateEditor.
Whenever I use setObjectValue: on the NSPredicateEditor, it displays
the new predicate, but if I change a couple of the operators (is,
contains, begins with, etc) the text fields on the rows disappear
Quincey;
Do you in fact have a "code" property? On the app delegate? What's
does it's @property (or accessor prototype) look like?
The 'code' property is declared on an entity: MyEntity.
The accessors were created by XCode itself using the 'Copy Method
Declaration/Implementation to Clipboard'
If -[NSKeyedUnarchiver unarchiveObjectWithData:] is handed a corrupt
archive, it raises an exception AND crashes the program. I find this
to be very annoying since, almost always, archives come from files or
network sources where corruption is possible. Therefore, I have
always protected
On Thu, Jul 2, 2009 at 2:16 PM, Jack Repenning wrote:
> I've always been taught that one must only create and run AppKit objects on
> the main thread. Recently, though, over in objc-language,
>
> http://lists.apple.com/archives/Objc-language/2009/Jul/msg2.html
>
> it was pointed out that the t
On Thu, Jul 2, 2009 at 5:25 PM, Andy Lee wrote:
> On Thursday, July 02, 2009, at 11:39AM, "Michael Ash"
> wrote:
>>On Wed, Jul 1, 2009 at 11:18 PM, Marco S Hyman wrote:
> [...]
>>> That leads directly to something I've been thinking about as one new to
>>> cocoa:
>>> how do you document your bind
On Thu, Jul 2, 2009 at 11:17 PM, Jerry Krinock wrote:
> If -[NSKeyedUnarchiver unarchiveObjectWithData:] is handed a corrupt
> archive, it raises an exception AND crashes the program. I find this to be
> very annoying since, almost always, archives come from files or network
> sources where corrup
On Jul 2, 2009, at 4:25 PM, Andy Lee wrote:
On Thursday, July 02, 2009, at 11:39AM, "Michael Ash" > wrote:
On Wed, Jul 1, 2009 at 11:18 PM, Marco S Hyman wrote:
[...]
That leads directly to something I've been thinking about as one
new to
cocoa:
how do you document your bindings? Any prefe
On Jul 2, 2009, at 19:51, Steve Cronin wrote:
SortDescriptor is, of course, an NSArray - which is also named 'code'.
Huh? Does the matching name mean something about the MyEntity "code"
property?
Furthermore this all works peachy in a Release build on either Tiger
or Leopard.
Clicking o
On 2 Jul 2009, at 16:29, Steve Christensen wrote:
If you want to make sure that you don't include any "old" code in
your executable when you decide to make 10.5 (for example) your base
OS version, you could arrange your code like this:
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_
On 2009 Jul 02, at 21:11, Michael Ash wrote:
Is there a reason you can't just implement a new method in a category
and not replace the existing one? It will be just as safe in your
code, just as easy to use,
I'd considered doing that and yes it could be done. But then it would
have a diffe
On Thu, Jul 2, 2009 at 11:17 PM, Jerry Krinock wrote:
If -[NSKeyedUnarchiver unarchiveObjectWithData:] is handed a corrupt
> archive, it raises an exception AND crashes the program.
Do you have a sample app & data combo which demonstrates the crash?
+[NSKeyedUnarchiver unarchiveObjectWithData:
On Jul 1, 2009, at 8:18 PM, Marco S Hyman wrote:
On Jul 1, 2009, at 6:50 PM, Adam R. Maxwell wrote:
Well, I generally avoid bindings, since I can't comment nib/xib
files, and it takes too long to reverse engineer my own (or worse,
someone else's) bindings when I'm doing maintenance work. W
On 2009 Jul 02, at 22:53, Jim Correia wrote:
Do you have a sample app & data combo which demonstrates the crash?
Yes, if you take the TEST CODE at the bottom of my original post and
revert to Apple's method by commenting out the +[NSKeyedUnarchiver
load] method in there, it will crash.
On Jul 3, 2009, at 00:25 AM, Jeff Johnson wrote:
This is why I tell people nibs are no good.
Also bindings. ;-)
Bindings are definitely the worst-case scenario for nibs. They tend to
proliferate, and they are burrowed deep in the IB UI making them hard
to miss if you don't check every wi
83 matches
Mail list logo