Hi all
I have given up on doing anymore work on my current project until i
get this sorted
ok simply i have an interface with 2 textfields, one for a number and
one for a string.
Also there is a button which tells the controller to tell my class to
update the model vars.
I am using Obj-
On Aug 23, 2008, at 12:41 AM, Kieren Eaton wrote:
Right so in IB I have an object which is of class "someClass" and an
object controller which has the content outlet set to the
"someclass" object and the keys "someString","someNumber".
The button calls the changeValues method in the delegate
So I could use this method to enable/disable the menu item rather than
hide it? That may look a bit more pleasing to the user.
Will give it a go.
Thanks.
Regards,
Stuart
Sent from my iPhone
On 23 Aug 2008, at 02:53, Jonathan Hess <[EMAIL PROTECTED]> wrote:
On Aug 22, 2008, at 6:15 PM, G
Reposted due to 25KB size limit. Sorry.
On 23 Aug 2008, at 06:42, Adam Thorsen wrote:
Are there any examples of using the UTI API to determine the UTI
given a path to a file?
Thanks,
-Adam
In my app I have a singleton UTI controller class that has an NSArray
property of UTIs supported by
I have a class for which equality can be defined as having the same
internal string value (which happens to be a UUID-turned-string). I
can easily implement isEqual: based on that but the docs say I also
need to implement -hash. Any pointers on what is a good way to do
that? Could I just sa
On Sat, Aug 23, 2008 at 11:41 PM, Graham Cox <[EMAIL PROTECTED]> wrote:
> I have a class for which equality can be defined as having the same internal
> string value (which happens to be a UUID-turned-string). I can easily
> implement isEqual: based on that but the docs say I also need to implement
On Sat, Aug 23, 2008 at 7:41 AM, Graham Cox <[EMAIL PROTECTED]> wrote:
> I have a class for which equality can be defined as having the same internal
> string value (which happens to be a UUID-turned-string). I can easily
> implement isEqual: based on that but the docs say I also need to implement
Right so in IB I have an object which is of class "someClass" and an
object controller which has the content outlet set to the
"someclass" object and the keys "someString","someNumber".
The button calls the changeValues method in the delegate
The 2 textfields are bound to the controller with
sel
Right so in IB I have an object which is of class "someClass" and an
object controller which has the content outlet set to the
"someclass" object and the keys "someString","someNumber".
The button calls the changeValues method in the delegate
The 2 textfields are bound to the controller with
sel
On 23 Aug 2008, at 10:13 pm, Michael Ash wrote:
On Sat, Aug 23, 2008 at 7:41 AM, Graham Cox <[EMAIL PROTECTED]>
wrote:
I have a class for which equality can be defined as having the same
internal
string value (which happens to be a UUID-turned-string). I can easily
implement isEqual: based
Le 23 août 08 à 13:41, Graham Cox a écrit :
I have a class for which equality can be defined as having the same
internal string value (which happens to be a UUID-turned-string). I
can easily implement isEqual: based on that but the docs say I also
need to implement -hash. Any pointers on w
On 23 Aug 2008, at 9:52 pm, Jean-Daniel Dupas wrote:
Le 23 août 08 à 13:41, Graham Cox a écrit :
I have a class for which equality can be defined as having the same
internal string value (which happens to be a UUID-turned-string). I
can easily implement isEqual: based on that but the docs
Yeah, but that's not going to update immediately when the field changes, is it?
The NSArrayController doco mentions:
"When you detect that filtering criteria change (such as when listening to the
text sent by an NSSearchField instance), invoke this method on self."
What is the correct way to l
Le 23 août 08 à 15:39, Graham Cox a écrit :
On 23 Aug 2008, at 9:52 pm, Jean-Daniel Dupas wrote:
Le 23 août 08 à 13:41, Graham Cox a écrit :
I have a class for which equality can be defined as having the
same internal string value (which happens to be a UUID-turned-
string). I can easil
Hi all,
Thanks to Quincey's note and some back-referencing to one of the
earlier RaiseMan projects, I was finally able to solve this.
(as usual) The solution actually was simpler than I thought. I had to
*effectively* override these two methods:
- (NSData *)dataOfType:(NSString *)typeNam
On Aug 22, 2008, at 12:14, Timothy Larkin wrote:
The first question is a simple one. After migration, the old
persistent store is renamed sourceURL~.xml, and the document is
supposed to open with a new persistent store with the old url,
sourceURL.xml,. However, the document window that appe
On Aug 23, 2008, at 7:41 AM, Graham Cox wrote:
I have a class for which equality can be defined as having the same
internal string value (which happens to be a UUID-turned-string). I
can easily implement isEqual: based on that but the docs say I also
need to implement -hash. Any pointers on
On Aug 23, 2008, at 8:57 AM, Jean-Daniel Dupas wrote:
Look into the CoreFoundation sources. as Cocoa primitive are tool
free bridged, they use the same hash functions. They is even a
special case for NSString into the CFString.c file.
http://www.opensource.apple.com/darwinsource/10.5.4/CF-4
I have a document based app that does the right thing under Tiger.
Works great.
Under Leopard, NSApplication _doOpenUntitled is raising [NSCFArray
objectAtIndex:]: index (0) beyond bounds (0)
during the application opening sequence. There isn't a single routine
that is mine on the stack
On Aug 23, 2008, at 5:13 AM, Michael Ash wrote:
On Sat, Aug 23, 2008 at 7:41 AM, Graham Cox <[EMAIL PROTECTED]>
wrote:
I have a class for which equality can be defined as having the same
internal
string value (which happens to be a UUID-turned-string). I can easily
implement isEqual: based
On Aug 23, 2008, at 08:00, Timothy Larkin wrote:
I went so far as to subclass NSDocumentController, overriding
openDocumentWithContentsOfURL:absoluteURL display:error:. I tried
many ideas, including closing the document and having NSRunLoop send
a message to reopen the document after openDo
On Aug 23, 2008, at 5:16 AM, Kieren Eaton wrote:
ok the delegate is set as an object in IB it is the delegate of
Files owner and nsapplication (thats correct isnt it?) it has a
class of bindtestdelegate which is where the button action is located.
The button calls the changeValues method in th
On Aug 23, 2008, at 9:26 AM, Todd Blanchard wrote:
- (IBAction)newDocument:(id)sender
{
[self closeAllDocumentsWithDelegate:self
didCloseAllSelector
:@selector(documentController:didCloseAll:contextInfo:) contextInfo:
0];
[super newDocument: sender];
}
because I only support one docum
On Aug 23, 2008, at 11:38 AM, Adam R. Maxwell wrote:
On Aug 23, 2008, at 5:13 AM, Michael Ash wrote:
On Sat, Aug 23, 2008 at 7:41 AM, Graham Cox
<[EMAIL PROTECTED]> wrote:
I have a class for which equality can be defined as having the
same internal
string value (which happens to be a UUID-t
On Aug 23, 2008, at 12:26 PM, Jeff Johnson wrote:
If you compare primitives in -isEqual:, you should combine them
(using
xor or the like) in -hash. If you compare objects by calling -
isEqual:
on them, you should combine their hashes (using xor or the like). If
you do some of each, combine th
Is there a convenience function (or method) foo() with int arg and
NSString* value for converting an error code to a string?
For example, given error code errcode = 560227702 = 0x21646576,
foo(errcode) = @"!idev"?
--RS
___
Cocoa-dev mailing list (
On Sat, Aug 23, 2008 at 2:09 PM, Roland Silver <[EMAIL PROTECTED]> wrote:
> Is there a convenience function (or method) foo() with int arg and NSString*
> value for converting an error code to a string?
This program:
#include
int main(int argc, char **argv)
{
int a = 560227702;
c
On Aug 23, 2008, at 11:44 AM, Kyle Sluder wrote:
On Sat, Aug 23, 2008 at 2:09 PM, Roland Silver
<[EMAIL PROTECTED]> wrote:
Is there a convenience function (or method) foo() with int arg and
NSString*
value for converting an error code to a string?
This program:
#include
int main(int argc,
On Aug 23, 2008, at 10:26 AM, Jeff Johnson wrote:
On Aug 23, 2008, at 11:38 AM, Adam R. Maxwell wrote:
On Aug 23, 2008, at 5:13 AM, Michael Ash wrote:
On Sat, Aug 23, 2008 at 7:41 AM, Graham Cox
<[EMAIL PROTECTED]> wrote:
I have a class for which equality can be defined as having the
sam
I'm trying to read individual pixel values in a monochrome image using
NSReadPixel, but I haven't been able to.
I would much appreciate anyone's help
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
On Sat, Aug 23, 2008 at 2:54 PM, Bill Bumgarner <[EMAIL PROTECTED]> wrote:
> Huh? There is no reason why accessing b[4] should crash. Produce a random
> value? Sure, but not crash. You are just accessing one byte past a stack
> based array and, thus, reading a random byte off the stack.
I'm no
On Aug 23, 2008, at 2:05 PM, Adam R. Maxwell wrote:
If I have
@interface Test : NSObject
{
id ivar1;
id ivar2;
}
@end
@implementation Test
- (BOOL)isEqual:(id)other
{
if ([other isKindOfClass:[self class]] == NO) return NO;
return ([ivar1 isEqual:(Test *)other->ivar1] && [ivar2 isEqua
I found it. CoreAudio being flakey again while being initialized.
Changed order of initialization a bit and it stopped giving me the "no
such property" error. It is different in Tiger and Leopard despite
sticking to the 10.4 api.
Is it me or is the debugger becoming progressively more us
On Sat, Aug 23, 2008 at 4:40 PM, Todd Blanchard <[EMAIL PROTECTED]> wrote:
> Is it me or is the debugger becoming progressively more useless? I often
> find that it can't show me variables in the current scope and setting a
> breakpoint on NSException raise doesn't really reveal the point of error
On Sat, Aug 23, 2008 at 4:55 PM, Todd Blanchard <[EMAIL PROTECTED]> wrote:
> I had no idea - I'm still catering to the Tiger world mostly. Is there a
> good document that just tells me what is new?
The Leopard release notes are a great start:
http://developer.apple.com/releasenotes/Cocoa/Foundati
On Fri, Aug 22, 2008 at 2:54 AM, Eduardo Areitio <[EMAIL PROTECTED]> wrote:
> I'm trying to read individual pixel values in a monochrome image using
> NSReadPixel, but I haven't been able to.
>
> I would much appreciate anyone's help
It is usually best to post some code or better explain what yo
I am trying to add a log window to an otherwise single window application
and have come across a couple of basic window management issues.
Firstly, if the log window is closed by clicking the close button and then I
subsequently call makeKeyAndOrderFront then I get a crash. I presume there
is a win
--- On Sat, 8/23/08, Andrew Zahra <[EMAIL PROTECTED]> wrote:
> I am trying to add a log window to an otherwise single
> window application
> and have come across a couple of basic window management
> issues.
> Firstly, if the log window is closed by clicking the close
> button and then I
> subs
hi,
I have a project which has "MyTest" as the project name, so the executable has
the same name, now I'd like to rename it to "MyProg", I renamed the Xoce's
project file to "MyProg", but the executable still has the previous name, any
idea how to rename ? thanks
Angelo
為了不斷提升Yahoo!
M
On Aug 23, 2008, at 5:15 PM, Angelo Chen wrote:
I have a project which has "MyTest" as the project name, so the
executable has the same name, now I'd like to rename it to "MyProg",
I renamed the Xoce's project file to "MyProg", but the executable
still has the previous name, any idea how t
On Aug 23, 2008, at 9:43 PM, Jeff Johnson wrote:
On Aug 23, 2008, at 2:05 PM, Adam R. Maxwell wrote:
If I have
@interface Test : NSObject
{
id ivar1;
id ivar2;
}
@end
@implementation Test
- (BOOL)isEqual:(id)other
{
if ([other isKindOfClass:[self class]] == NO) return NO;
return ([ivar
Date: Sat, 23 Aug 2008 12:05:44 -0700
From: "Adam R. Maxwell" <[EMAIL PROTECTED]>
[...]
- (BOOL)isEqual:(id)other
{
if ([other isKindOfClass:[self class]] == NO) return NO;
return ([ivar1 isEqual:(Test *)other->ivar1] && [ivar2 isEqual:
(Test *)other->ivar2]);
}
- (unsigned)hash { return [
Hi,
I'd like to filter an array to return only jpeg file names like DSC0001.jpg,
DSC0002.jpg, etc. could anybody help me modify the jpegPredicate for that
mater? thanks
NSPredicate *jpegPredicate = [NSPredicate predicateWithFormat:@"SELF [c] 'b'"];
NSArray *lst = [[[NSFileManager defaultManager
On Aug 23, 2008, at 5:20 PM, Peter Duniho wrote:
Date: Sat, 23 Aug 2008 12:05:44 -0700
From: "Adam R. Maxwell" <[EMAIL PROTECTED]>
[...]
Note the redundant multiply and add in the first line. Writing the
code that way makes it easy to add/remove members if for some reason
the data str
On Aug 23, 2008, at 5:16 AM, Kieren Eaton wrote:
ok the delegate is set as an object in IB it is the delegate of
Files owner and nsapplication (thats correct isnt it?) it has a
class of bindtestdelegate which is where the button action is
located.
The button calls the changeValues method in t
On Aug 23, 2008, at 2:51 PM, Shawn Erickson wrote:
On Fri, Aug 22, 2008 at 2:54 AM, Eduardo Areitio <[EMAIL PROTECTED]> wrote:
I'm trying to read individual pixel values in a monochrome image
using
NSReadPixel, but I haven't been able to.
I would much appreciate anyone's help
It is usual
On Aug 21, 2008, at 7:59 PM, Thomas Engelmeier wrote:
Am 22.08.2008 um 00:59 schrieb Dave MacLachlan:
Also, are the _ in front of member variables for Apple only (so we
don't stomp on each other with member var names) or are they using
them for the readability reason mentioned above? Ther
Date: Sat, 23 Aug 2008 17:52:21 -0700
From: "Adam R. Maxwell" <[EMAIL PROTECTED]>
Well, if your hash values collide, they collide regardless of the
hash table. As long as you've got a well-distributed hash function,
any collisions generated by the hash table implementation should be
well-distri
Hi,
I use following code to select a volume, it works, but it also give the user
chance to select directory as well, how to disable selection of directories,
only allow volumes?
thanks,
NSOpenPanel *oPanel = [OpenPanel openPanel];
[oPanel setCanChooseFiles:NO];
[oPanel setCanChooseDirectories:
49 matches
Mail list logo