Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> > On 24/02/2011, at 5:56 PM, Trygve Inda wrote: > >> The problem is two-fold: >> >> 1) How can I have nibs, one with MyObjectClass:NSObject and the other with >> MyObjectClass:NSPreferencePane where MyObjectClass is essentially the same >> but with a few #ifdef to have conditional compilation

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> > On 24/02/2011, at 5:56 PM, Trygve Inda wrote: > >> The problem is two-fold: >> >> 1) How can I have nibs, one with MyObjectClass:NSObject and the other with >> MyObjectClass:NSPreferencePane where MyObjectClass is essentially the same >> but with a few #ifdef to have conditional compilation

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Graham Cox
On 24/02/2011, at 5:56 PM, Trygve Inda wrote: > The problem is two-fold: > > 1) How can I have nibs, one with MyObjectClass:NSObject and the other with > MyObjectClass:NSPreferencePane where MyObjectClass is essentially the same > but with a few #ifdef to have conditional compilation. The real

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> > On 24/02/2011, at 5:29 PM, Trygve Inda wrote: > >> How can I properly set this up? > > > I'm not sure if it's the best way, but you could just make MyObjectClass > *always* an NSObject subclass, and let it act as an intermediary or controller > for the real class. In other words, its interf

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Graham Cox
On 24/02/2011, at 5:29 PM, Trygve Inda wrote: > How can I properly set this up? I'm not sure if it's the best way, but you could just make MyObjectClass *always* an NSObject subclass, and let it act as an intermediary or controller for the real class. In other words, its interface is fixed in

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> > On 24/02/2011, at 11:23 AM, Trygve Inda wrote: > >> So when I define MyCommonAppDelegate in the nib, it should only have the >> "SparkleUpdate" IBAction in the retail version... So this code really sits >> in MyPrefPaneDelegate... But how do I get IB to realize this? >> >> I am really trying

Re: NSInternalInconsistencyException

2011-02-23 Thread Ken Ferry
NSCell does not itself have storage for a target or action, NSActionCell does. You can still ask for a target or action, but you'll always get nil and NULL. It's basically drawing-only. - (id)target { return nil; } - (SEL)action { return (SEL)0; } So, I suppose the question is wh

Re: [myWindowController window] returns null !

2011-02-23 Thread Louis Demers
On 2011-02-24, at 00:22 , Kyle Sluder wrote: > On Wed, Feb 23, 2011 at 8:55 PM, Louis Demers wrote: >> I temporarily set the File's Owner type to a NSWindowController class and >> connected the window to it. Got the same null value > > Rather than trash at the answer, it would be more helpful

Re: [myWindowController window] returns null !

2011-02-23 Thread Kyle Sluder
On Wed, Feb 23, 2011 at 8:55 PM, Louis Demers wrote: > I temporarily set the File's Owner type to a NSWindowController class and > connected the window to it. Got the same null value Rather than trash at the answer, it would be more helpful to learn the meaning behind your actions. If you set t

Re: [myWindowController window] returns null !

2011-02-23 Thread Louis Demers
On 2011-02-23, at 23:50 , Stephen J. Butler wrote: > On Wed, Feb 23, 2011 at 10:45 PM, Louis Demers wrote: >> No, in my xib, the File's Owner type is set to a custom Object which has >> some IBOutlet that I connect the gui elements to! >> Then, when I call >> >> myWindowController = [[NSWindow

Re: [myWindowController window] returns null !

2011-02-23 Thread Stephen J. Butler
On Wed, Feb 23, 2011 at 10:45 PM, Louis Demers wrote: > No, in my xib, the File's Owner type is set to a custom Object which has some > IBOutlet that I connect the gui elements to! > Then, when I call > > myWindowController = [[NSWindowController alloc] > initWithWindowNibName:@"myWindowXIB" own

Re: [myWindowController window] returns null !

2011-02-23 Thread Louis Demers
On 2011-02-23, at 23:36 , Stephen J. Butler wrote: > On Wed, Feb 23, 2011 at 10:26 PM, Louis Demers wrote: >> I instantiate a NSWindowController with the nib file name and call >> showWindow on it. >> >> myWindowController = [[NSWindowController alloc] >> initWithWindowNibName:@"myWindowXIB"

Re: [myWindowController window] returns null !

2011-02-23 Thread Stephen J. Butler
On Wed, Feb 23, 2011 at 10:26 PM, Louis Demers wrote: >  I instantiate a NSWindowController with the nib file name and call > showWindow on it. > > myWindowController = [[NSWindowController alloc] > initWithWindowNibName:@"myWindowXIB" owner: someObject ]; > > My window and its content show up b

[myWindowController window] returns null !

2011-02-23 Thread Louis Demers
Hi, I instantiate a NSWindowController with the nib file name and call showWindow on it. myWindowController = [[NSWindowController alloc] initWithWindowNibName:@"myWindowXIB" owner: someObject ]; My window and its content show up but when I ask the windowController for the window pointer it

[Meet] LA Cocoa Heads starts iOS book study March 10th

2011-02-23 Thread Rob Ross
Greetings LA Cocoa Heads! Thanks to everyone who attended the last meeting. For those of you that missed it, we've decided to start a group study of this book: Beginning iPhone4 Development book (Dave Mark, Jeff LaMarche, Jack Nutting) You can pick up a copy at the usual book stores, online or

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Graham Cox
On 24/02/2011, at 1:55 PM, Trygve Inda wrote: > I just need to keep > sparkle totally unmentioned it seems... Even as an unused class action > method. You must have had an unusually pedantic reviewer. All the store rules stipulate is that 'you must not use an update mechanism other than the A

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> > On 24/02/2011, at 1:41 PM, Trygve Inda wrote: > >> -(IBAction)doSparkleStuff:(id)sender; >> >> Even though this code is #ifdef'd out in the AppStore build, it seems to be >> a problem that the nib refers to it (it is not hooked up, but is part of the >> class since there is no way to make IB

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Graham Cox
On 24/02/2011, at 1:41 PM, Trygve Inda wrote: > -(IBAction)doSparkleStuff:(id)sender; > > Even though this code is #ifdef'd out in the AppStore build, it seems to be > a problem that the nib refers to it (it is not hooked up, but is part of the > class since there is no way to make IB ignore thi

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> > On 24/02/2011, at 1:16 PM, Trygve Inda wrote: > >> Hmmm.. Mine was rejected until I totally removed all the methods too. > > > That doesn't seem reasonable. Did you try explaining that the actual code that > handles Sparkle updates has been removed? > > When I was initially rejected (on an

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Graham Cox
On 24/02/2011, at 1:16 PM, Trygve Inda wrote: > Hmmm.. Mine was rejected until I totally removed all the methods too. That doesn't seem reasonable. Did you try explaining that the actual code that handles Sparkle updates has been removed? When I was initially rejected (on an unrelated issue)

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> > On 24/02/2011, at 1:05 PM, Trygve Inda wrote: > >> And this supercalss is instantiated in the nib, won't this appear in the nib >> somewhere even if it does not hook to the action? I can't have it that way >> (at last if I want to call the methods anything containing "sparkle". > > > Why no

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Graham Cox
On 24/02/2011, at 1:05 PM, Trygve Inda wrote: > And this supercalss is instantiated in the nib, won't this appear in the nib > somewhere even if it does not hook to the action? I can't have it that way > (at last if I want to call the methods anything containing "sparkle". Why not? This won't c

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Graham Cox
On 24/02/2011, at 1:00 PM, Trygve Inda wrote: > I could of course combine AppControllerUnique and PaneControllerUnique and > call it ControllerUnique with #ifdefs to split the code, but there is no way > to make an IBAction available in only one version... Since IB does not > recognize the #ifde

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
I have one project that outputs two binaries - one for the App Store (an app) and one for my own website version (a prefpane). All the classes are the same except for two: MyPrefPaneDelegate MyAppDelegate These are each in their respective apps.

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> > On 24/02/2011, at 11:23 AM, Trygve Inda wrote: > >> So when I define MyCommonAppDelegate in the nib, it should only have the >> "SparkleUpdate" IBAction in the retail version... So this code really sits >> in MyPrefPaneDelegate... But how do I get IB to realize this? >> >> I am really trying

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Greg Parker
On Feb 23, 2011, at 5:34 PM, Charles Srstka wrote: > On Feb 23, 2011, at 2:35 PM, James Bucanek wrote: > >> It also occurred to me that if I'm careful, the Objective-C code doesn't >> really need any of the details of the instance variables in the >> Objective-C++ class: >> >> @interface MyCPPC

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Charles Srstka
On Feb 23, 2011, at 2:35 PM, James Bucanek wrote: > It also occurred to me that if I'm careful, the Objective-C code doesn't > really need any of the details of the instance variables in the Objective-C++ > class: > > @interface MyCPPClass : NSObject > { > #ifdef __cplusplus >@private >

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Graham Cox
On 24/02/2011, at 11:23 AM, Trygve Inda wrote: > So when I define MyCommonAppDelegate in the nib, it should only have the > "SparkleUpdate" IBAction in the retail version... So this code really sits > in MyPrefPaneDelegate... But how do I get IB to realize this? > > I am really trying not to hav

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread WT
>>> I have one project that outputs two binaries - one for the App Store (an >>> app) and one for my own website version (a prefpane). >>> >>> All the classes are the same except for two: >>> >>> MyPrefPaneDelegate >>> >>> MyAppDelegate >>> >>> These are each in their respective apps. >>> >>>

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
> You can define a common superclass for both MyAppDelegate and MyPrefDelegate - > MyCommonAppDelegate - and use that as the type of the IBOutlet. You can then > #define convenience delegates for each actual case, so you'd have something > like: > > IBOutlet MyCommonAppDelegate* commonDelegate; >

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Lee Ann Rucker
On Feb 23, 2011, at 10:47 AM, James Bucanek wrote: > Greetings, > > I searched the list, and Apple's documentation, and couldn't > find an answer to this (simple) question. > > I have a couple of large Cocoa projects that suddenly need to > use some C++ libraries (3D graphics stuff). I assume

Re: Fast way to grab the screen

2011-02-23 Thread Kyle Sluder
On Wed, Feb 23, 2011 at 3:21 PM, Ken Thomases wrote: > On Feb 23, 2011, at 4:40 PM, Kyle Sluder wrote: > >> On Wed, Feb 23, 2011 at 2:17 PM, eveningnick eveningnick >> wrote: >>> i am trying to write a video grabber, CGWindow API seems pretty convenient >>> (because it allows to select which wind

Re: Fast way to grab the screen

2011-02-23 Thread Ken Thomases
On Feb 23, 2011, at 4:40 PM, Kyle Sluder wrote: > On Wed, Feb 23, 2011 at 2:17 PM, eveningnick eveningnick > wrote: >> i am trying to write a video grabber, CGWindow API seems pretty convenient >> (because it allows to select which window to "grab"), but i am worried about >> the speed, because i

NSInternalInconsistencyException

2011-02-23 Thread koko
I added a 4 x 1 Matrix of NSImageViews which became NSImageCells to a view. I Set the class of this Matrix to a custom class. Upon build and run I get: NSInternalInconsistencyException 'Stub implementation of -setTarget by NSCell does nothing.' I am not sure what I should do ... How would I

Re: Fast way to grab the screen

2011-02-23 Thread Kyle Sluder
On Wed, Feb 23, 2011 at 2:17 PM, eveningnick eveningnick wrote: > i am trying to write a video grabber, CGWindow API seems pretty convenient > (because it allows to select which window to "grab"), but i am worried about > the speed, because i need to record the grabbed frames to the video file. h

Re: Help with Apple Helpbooks

2011-02-23 Thread Bruce Cresanta
Todd, Please let me know how you do with Cheeseman's book. I have given up for the day. I had absolutely zero success. :( Bruce On Feb 23, 2011, at 10:07 AM, Todd Heberlein wrote: > > On Feb 23, 2011, at 4:37 AM, Bruce Cresanta wrote: > >> They may be no big deal, but the more I

Fast way to grab the screen

2011-02-23 Thread eveningnick eveningnick
Hello Which way is faster to get the picture of the desktop (or some of its windows): using CGWindow API or OpenGL? i am trying to write a video grabber, CGWindow API seems pretty convenient (because it allows to select which window to "grab"), but i am worried about the speed, because i need to re

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Greg Parker
On Feb 23, 2011, at 12:35 PM, James Bucanek wrote: > Also, I'm still curious to know if I should be using extern "C" when > importing Objective-C headers in a Objective-C++ modules? The Objective-C constructs are unaffected by `extern "C"`. Of course, if your Objective-C header declares a C func

Re: Weird bug while debugging...

2011-02-23 Thread Carlos Eduardo Mello
It sounds like you're trying to debug a "Release" configuration. Try debugging the "Debug" configuration instead. Ooops. Doooh! Of course. Sorry People. How stupid of me...and I should have realized it. Thanks a lot. (Please forgive me for the noise.) __

Re: Weird bug while debugging...

2011-02-23 Thread Quincey Morris
On Feb 23, 2011, at 12:14, Carlos Eduardo Mello wrote: > Hi all, > > I've been trying to find an error in my code for the past two hours and my > head is spinning. > For some reason the debugger is acting reaally weird: > > - it doesn't show some of my local variables; > - it goes through e

Re: IBOutlet to different classes, conditional build

2011-02-23 Thread WT
You can define a common superclass for both MyAppDelegate and MyPrefDelegate - MyCommonAppDelegate - and use that as the type of the IBOutlet. You can then #define convenience delegates for each actual case, so you'd have something like: IBOutlet MyCommonAppDelegate* commonDelegate; and then

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread James Bucanek
(1) Sean McBride wrote (Wednesday, February 23, 2011 11:55 AM -0500): 2) You can keep C++ out of your Obj-C .h files like so: #ifdef __cplusplus typedef SomeCPPClassPtr SomeCPPClassRef; #else typedef void* SomeCPPClassRef; #endif Sean, That's what I origin

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Kyle Sluder
Bringing this back on-list. On Wed, Feb 23, 2011 at 12:09 PM, James Bucanek wrote: > Kyle, > > I know that. I already read that. That wasn't what I was asking. Sorry, I was thrown off by "send messages […] to my Objective-C++ classes." --Kyle Sluder _

Weird bug while debugging...

2011-02-23 Thread Carlos Eduardo Mello
Hi all, I've been trying to find an error in my code for the past two hours and my head is spinning. For some reason the debugger is acting reaally weird: - it doesn't show some of my local variables; - it goes through each line of code twice, before showing a variables value; - many va

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Sean McBride
On Wed, 23 Feb 2011 13:41:41 -0600, Ken Thomases said: >> 2) You can keep C++ out of your Obj-C .h files like so: >> >> #ifdef __cplusplus >> typedef SomeCPPClassPtr SomeCPPClassRef; >> #else >> typedef void* SomeCPPClassRef; >> #endif > >It might be better to follow the pImpl (pointer-t

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Ken Thomases
On Feb 23, 2011, at 12:55 PM, Sean McBride wrote: > 2) You can keep C++ out of your Obj-C .h files like so: > > #ifdef __cplusplus > typedef SomeCPPClassPtr SomeCPPClassRef; > #else > typedef void* SomeCPPClassRef; > #endif It might be better to follow the pImpl (pointer-to-implement

IBOutlet to different classes, conditional build

2011-02-23 Thread Trygve Inda
I have one project that outputs two binaries - one for the App Store (an app) and one for my own website version (a prefpane). All the classes are the same except for two: MyPrefPaneDelegate MyAppDelegate These are each in their respective apps. How can I build my shared classes so I can do:

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Kyle Sluder
On Wed, Feb 23, 2011 at 10:47 AM, James Bucanek wrote: > I have a couple of large Cocoa projects that suddenly need to use some C++ > libraries (3D graphics stuff). I assume that I can simply start creating > Objective-C++ classes to contain this code, but I'm wondering how to cleanly > integrate

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Sean McBride
On Wed, 23 Feb 2011 11:47:23 -0700, James Bucanek said: >I have a couple of large Cocoa projects that suddenly need to >use some C++ libraries (3D graphics stuff). Two useful thoughts: 1) You can use 'id' in your C++ by including the pure C header . 2) You can keep C++ out of your Obj-C .h file

Help Mixing Objective-C & Objective-C++

2011-02-23 Thread James Bucanek
Greetings, I searched the list, and Apple's documentation, and couldn't find an answer to this (simple) question. I have a couple of large Cocoa projects that suddenly need to use some C++ libraries (3D graphics stuff). I assume that I can simply start creating Objective-C++ classes to conta

Re: Looking for help scanning entire drives

2011-02-23 Thread Greg Guerin
Laurent Daudelin wrote: I need to write an application that will scan entire drives and compare files between the 2 drives. man rsync See the --dry-run, --stats, and --progress options in particular. rsync can also run as a daemon, which may be easier than trying to control it with NSTas

Re: Spotcolors in Cocoa

2011-02-23 Thread Kyle Sluder
On Wed, Feb 23, 2011 at 8:54 AM, Kristof Vanhaesebrouck wrote: > Thanks for the quick reply. > Could you be a bit more specific? > Do I have to override the set method of NSColor and how do I write the name > of the color in the pdf? I don't think Quartz supports separation color spaces. You'll

Re: Looking for help scanning entire drives

2011-02-23 Thread ronald b. kopelman
On Feb 23, 2011, at 6:41 AM, cocoa-dev-requ...@lists.apple.com wrote: > I need to write an application that will scan entire drives and compare files > between the 2 drives. I have already something working but in situations > where there are a lot of files (hundreds of thousands), the memory >

Re: Looking for help scanning entire drives

2011-02-23 Thread Ross Carter
>>> On Feb 23, 2011, at 12:37 PM, Andreas Grosam wrote: >>> If there is no appropriate free or commercial tool which could solve your problem already . . . I haven't tried it myself, but you might look at the FolderSweep source code from Rainer Brockerhoff and Matt Gemmell. _

Re: Help with Apple Helpbooks

2011-02-23 Thread Todd Heberlein
On Feb 23, 2011, at 9:46 AM, Martin Hewitson wrote: > I'm not sure if this is the new or the old way, but this worked perfectly for > me: It is the old way, but it is still very useful (and apparently still works). I especially liked some of the extra features he adds. Todd _

Re: Accessing a managedObject property from within an accessor of another property

2011-02-23 Thread Brad Stone
[A]nd then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match. ~Bill Bryson On Feb 22, 2011, at 11:42 PM, Quincey

Re: Help with Apple Helpbooks

2011-02-23 Thread Martin Hewitson
I'm not sure if this is the new or the old way, but this worked perfectly for me: http://www.apeth.com/writersua/implementAppleHelp.mov Martin On 23, Feb, 2011, at 06:07 PM, Todd Heberlein wrote: > > On Feb 23, 2011, at 4:37 AM, Bruce Cresanta wrote: > >> They may be no big deal, but the mor

Re: Help with Apple Helpbooks

2011-02-23 Thread Todd Heberlein
On Feb 23, 2011, at 4:37 AM, Bruce Cresanta wrote: > They may be no big deal, but the more I read and try the more confused I get. I spent most of yesterday on this myself, and I too found it very frustrating. Part of my confusion comes from the fact that "Apple Help Programming Guide" is a bl

Re: Help with Apple Helpbooks

2011-02-23 Thread Markus Spoettl
On Feb 23, 2011, at 11:24 AM, Bruce Cresanta wrote: > I'm releasing under Snow Leopard. I can find examples for the older style, > but none for the newer style. You might want to take a look at the link Bill has posted as a response to your question. Markus -- ___

Re: Spotcolors in Cocoa

2011-02-23 Thread Kristof Vanhaesebrouck
Thanks for the quick reply. Could you be a bit more specific? Do I have to override the set method of NSColor and how do I write the name of the color in the pdf? On 23 Feb 2011, at 09:50, Kyle Sluder wrote: > On Tue, Feb 22, 2011 at 10:27 AM, Kristof Vanhaesebrouck > wrote: >> Hi all, >> >> I

Re: Looking for help scanning entire drives

2011-02-23 Thread Laurent Daudelin
On Feb 23, 2011, at 08:43, Charles Srstka wrote: > On Feb 23, 2011, at 5:46 AM, Andreas Grosam wrote: > >> >> On Feb 23, 2011, at 12:37 PM, Andreas Grosam wrote: >> >>> If there is no appropriate free or commercial tool which could solve your >>> problem already, I would suggest the following:

Re: Looking for help scanning entire drives

2011-02-23 Thread Charles Srstka
On Feb 23, 2011, at 5:46 AM, Andreas Grosam wrote: > > On Feb 23, 2011, at 12:37 PM, Andreas Grosam wrote: > >> If there is no appropriate free or commercial tool which could solve your >> problem already, I would suggest the following: >> >> 1) Use a NSDictionaryEnumerator in order to recursi

Re: A TableView Binding question

2011-02-23 Thread Kyle Sluder
Bringing this back on-list. On Wed, Feb 23, 2011 at 5:44 AM, Motti Shneor wrote: > Its fairly simple. I need to present on the table a column with some > information that is not directly available in the model. It is calculated > from several attributes using some non trivial logic. What you hav

Re: Help with Apple Helpbooks

2011-02-23 Thread Bruce Cresanta
Hi Ulf, I'm releasing under Snow Leopard. I can find examples for the older style, but none for the newer style. Thanks, Bruce On Feb 23, 2011, at 6:05 AM, Ulf Dunkel wrote: > Hello Bruce. > > On 23.02.2011 13:37, Bruce Cresanta wrote: >> They may be no big deal, but the more I read and tr

Re: System Configuration Framework And CurrentSet notifications

2011-02-23 Thread Ryan McGann
On Feb 23, 2011, at 3:41 AM, Roberto Mauro wrote: > Ok, > thank you to eskimo1 on the Apple Developer Forum I get how to setup a > notification for changes on prefs. > but every time prefDidChange is called when I try to get the CurrentSet from > kSCPrefCurrentSet as: > > CFPropertyListRef

Re: Help with Apple Helpbooks

2011-02-23 Thread Markus Spoettl
On Feb 23, 2011, at 8:07 AM, Bill Cheeseman wrote: >> I am authoring help for my application and can't even get a simple >> implementation to work, let alone localization. I have connected the File's >> Owner showHelp method to the mainMenu in my NIB. Does anyone know a >> workable directory s

Re: Help with Apple Helpbooks

2011-02-23 Thread Ulf Dunkel
Hello Bruce. On 23.02.2011 13:37, Bruce Cresanta wrote: They may be no big deal, but the more I read and try the more confused I get. First of all: Are you trying to create a Help Book in the old style like described on my page, or did you try to follow the new Snow Leopard style? The older

Re: Help with Apple Helpbooks

2011-02-23 Thread Bill Cheeseman
On Feb 23, 2011, at 7:19 AM, Bruce Cresanta wrote: > I am authoring help for my application and can't even get a simple > implementation to work, let alone localization. I have connected the File's > Owner showHelp method to the mainMenu in my NIB. Does anyone know a > workable directory str

Re: A TableView Binding question

2011-02-23 Thread Motti Shneor
Well Thanks everyone (especially Quincey). It works perfectly now. indeed "self" did the trick, and my previous runtime "unknown key path" binding errors were probably related to some other bug. However, I must say that not being able to observe the changes of a set (or array) of values, is a

Re: Help with Apple Helpbooks

2011-02-23 Thread Bruce Cresanta
They may be no big deal, but the more I read and try the more confused I get. On Feb 23, 2011, at 4:31 AM, Ulf Dunkel wrote: > Hello Bruce. > >> I am authoring help for my application and can't even get a simple >> implementation to work, let alone localization. I have connected the File's >>

Re: Help with Apple Helpbooks

2011-02-23 Thread Ulf Dunkel
Hello Bruce. I am authoring help for my application and can't even get a simple implementation to work, let alone localization. I have connected the File's Owner showHelp method to the mainMenu in my NIB. Does anyone know a workable directory structure to use? My application is localized

Help with Apple Helpbooks

2011-02-23 Thread Bruce Cresanta
Hello, I am authoring help for my application and can't even get a simple implementation to work, let alone localization. I have connected the File's Owner showHelp method to the mainMenu in my NIB. Does anyone know a workable directory structure to use? My application is localized across E

Re: A TableView Binding question

2011-02-23 Thread Mike Abdullah
> >> I believe something is missing in the visual description in IB. when you >> bind against the arrangedObjects of the ArrayController, you actually >> indirectly specify that the array controller instantiates some Enumerator >> (Iterator) and the Model Key Path is applied to that enumerator.

Re: Looking for help scanning entire drives

2011-02-23 Thread Andreas Grosam
On Feb 23, 2011, at 12:37 PM, Andreas Grosam wrote: > If there is no appropriate free or commercial tool which could solve your > problem already, I would suggest the following: > > 1) Use a NSDictionaryEnumerator in order to recursively iterate through a > specified dictionary at any volume.

Re: Looking for help scanning entire drives

2011-02-23 Thread Andreas Grosam
On Feb 23, 2011, at 7:08 AM, Laurent Daudelin wrote: > I need to write an application that will scan entire drives and compare files > between the 2 drives. I have already something working but in situations > where there are a lot of files (hundreds of thousands), the memory > consumption bec

RE: System Configuration Framework And CurrentSet notifications

2011-02-23 Thread Roberto Mauro
Ok, thank you to eskimo1 on the Apple Developer Forum I get how to setup a notification for changes on prefs. Something like: - (void)prefsDidChange { // reread your view of the world } static void PrefsDidChange( SCPreferencesRefprefs, SCPreferencesNotification noti

Re: Looking for help scanning entire drives

2011-02-23 Thread Matt Gough
I wonder if your memory issues are related to autorelease issues when using [NSDirectoryEnumerator nextObject:] If you are using enumeratorAtPath, I suggest doing you loop like this (from http://www.cocoadev.com/index.pl?NSDirectoryEnumerator): NSDirectoryEnumerator *enumerator = [[NSFileManag

Re: Spotcolors in Cocoa

2011-02-23 Thread Kyle Sluder
On Tue, Feb 22, 2011 at 10:27 AM, Kristof Vanhaesebrouck wrote: > Hi all, > > I'm working on an application which has to generate PDF's with spot colors. > I have been experimenting with Cocoa and NSColor but can't seem to find how > to create a spot color in Cocoa. > Does anyone know how to do t