RE: to use the default about panel

2008-06-01 Thread Rajendran_Pichaimurthy
Have a look at the sample code its gives a fairly good idea and a decent description about the ABOUT BOX http://developer.apple.com/samplecode/FancyAbout/FancyAbout.zip Rajendran P -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] com] On Behalf Of j o a r Sent: Mond

Re: NSPredicate: To be, or not to be

2008-06-01 Thread stephen joseph butler
On Sun, Jun 1, 2008 at 9:10 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > Following your suggestion, I changed my predicateFormat to: > @"%@ contains kMDItemTextContent" which translates into: > and behaves more or less > exactly like LIKE. > > So again: how to search kMDItemTextContent for

Advanced Mac OS X Bootcamp

2008-06-01 Thread Adam Gerson
I signed up for the Advanced Mac OS X Bootcamp at The Big Nerd Ranch. They don't yet have enough people to hold the class and I want it to happen so I am hoping more people will sign up. I took the Objective-C & Cocoa Bootcamp at the BNR and it was a fantastic experience. Dec 8 - 12 Advanced Mac

Re: NSPredicate: To be, or not to be

2008-06-01 Thread Gerriet M. Denkmann
On 2 Jun 2008, at 00:20, [EMAIL PROTECTED] wrote: On Sun, Jun 1, 2008 at 9:17 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: When I use an NSMetadataQuery with the NSPredicate "To be, or not to be;"> it seems to find all documents which contain these words in any order; and as they are

Re: DTrace probe problem

2008-06-01 Thread Bill Bumgarner
On Jun 1, 2008, at 7:19 PM, radj wrote: I can try that. Sounds like a good idea. Make the "waiting for the signal" the first thing the driver will do. but how do you send a signal from within DTrace to a specific process? I have no idea if dtrace can send a signal. I would send a kill - U

Re: DTrace probe problem

2008-06-01 Thread radj
> Personally, I would start by trying to use a signal handler. See > x-man-page://signal (the signal man page). Specifically, I would write a > handler for SIGUSR1 or SIGUSR2 as those exist explicitly to offer user > specific behaviors. Take a command line option or read an environment > varia

Core Data "entity required" error

2008-06-01 Thread Chataka
Hello, I am developing a non-document-based Core Data application and am facing a trouble with "entity required" error message. When I quit the app, the error message is shown on the console and the app fails to save data, although it has to save on quit. I guess from the error message that som

Re: Modulus calculation

2008-06-01 Thread Nick Zitzmann
On Jun 1, 2008, at 7:19 PM, vince wrote: I need to state whether a modulus value = zero. For example: if (textField.floatValue % 10 == (0)) { What's wrong with my syntax? You can't use % with floating point values. Instead, use fmod() on doubles (CGFloat on 64-bit) and fmodf() on single

Re: to use the default about panel

2008-06-01 Thread j o a r
On Jun 1, 2008, at 5:56 PM, Nick Rogers wrote: How can I make changes to the default "about panel"? Or do i have to add my own panel? Have a look at this technote: j o a r ___ Cocoa-dev

Modulus calculation

2008-06-01 Thread vince
I need to state whether a modulus value = zero. For example: if (textField.floatValue % 10 == (0)) { What's wrong with my syntax? Thanks. v. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: main menu's missing connection

2008-06-01 Thread Andy Lee
On Jun 1, 2008, at 9:00 PM, Nick Rogers wrote: In the instance window there is a yellow dot on the main menu as well as the main window. How to find which children has a bad or missing connection? I don't have IB in front of me, but I'm guessing it might help if you choose the outline displ

Re: to use the default about panel

2008-06-01 Thread Andy Lee
On Jun 1, 2008, at 8:56 PM, Nick Rogers wrote: How can I make changes to the default "about panel"? Or do i have to add my own panel? Search the list archives for orderFrontStandardAboutPanelWithOptions:, and read the docs for it as well. You can do some limited customization with that.

main menu's missing connection

2008-06-01 Thread Nick Rogers
Hi, In the instance window there is a yellow dot on the main menu as well as the main window. How to find which children has a bad or missing connection? Thanks, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

to use the default about panel

2008-06-01 Thread Nick Rogers
Hi, How can I make changes to the default "about panel"? Or do i have to add my own panel? Wishes Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: NSArray

2008-06-01 Thread Brian Christensen
On Jun 1, 2008, at 8:02 , Nathan wrote: here's my code: int x; - (IBAction)addNew:(id)sender { NSString *temp = @"Enter Todo Item Here"; [Items addObject: temp]; x=[Items count]; [label setIntValue: x]; [tableView setDataSource: Items]; [tableView relo

Re: NSArray

2008-06-01 Thread j o a r
On Jun 1, 2008, at 5:02 PM, Nathan wrote: [tableView setDataSource: Items]; Besides what Markus and Jonathan already suggested: NS/Mutable/Array doesn't conform to NSTableDataSource as far as I know. The data source should typically be one of your controller classes, like a window

Re: NSArray

2008-06-01 Thread Jonathan del Strother
On Mon, Jun 2, 2008 at 1:02 AM, Nathan <[EMAIL PROTECTED]> wrote: > here's my code: > > int x; > - (IBAction)addNew:(id)sender { >NSString *temp = @"Enter Todo Item Here"; >[Items addObject: temp]; >x=[Items count]; >[label setIntValue: x]; >[tableView setDataSou

Re: NSArray

2008-06-01 Thread Markus Spoettl
On Jun 1, 2008, at 5:02 PM, Nathan wrote: int x; - (IBAction)addNew:(id)sender { NSString *temp = @"Enter Todo Item Here"; [Items addObject: temp]; x=[Items count]; [label setIntValue: x]; [tableView setDataSource: Items]; [tableView reloadData]; } "Ite

Re: Hiding NSImageView

2008-06-01 Thread Damien Cooke
Thanks guys, What I did was to set the views setHidden property to YES. This is doing exactly what I wanted. Thanks for the assistance. Regards Damien On 02/06/2008, at 8:25 AM, Mark Munz wrote: Careful - tabless NSTabViews are a much bigger pain to traverse under IB3 (a step backwards fr

NSArray

2008-06-01 Thread Nathan
here's my code: int x; - (IBAction)addNew:(id)sender { NSString *temp = @"Enter Todo Item Here"; [Items addObject: temp]; x=[Items count]; [label setIntValue: x]; [tableView setDataSource: Items]; [tableView reloadData]; } "Items" is a mutable array. "

Re: Hiding NSImageView

2008-06-01 Thread Mark Munz
Careful - tabless NSTabViews are a much bigger pain to traverse under IB3 (a step backwards from IB2). There are several simple approaches to help resolve this issue. Call [btn setHidden:YES]; to hide the view (10.3 or later). If you're looking to just change the btn size, you can call setFrameS

Re: Cocoa Programming for Mac OS X 3rd ed Shipping?

2008-06-01 Thread Robert Nicholson
I glanced at this early today at Borders. One thing I was surprised to see omitted from the third edition was any discussion on NSOperationQueue. Am I mistaken or is there also no coverage of NSLock and NSThread in this edition? That seems to be omitted in order to make the Advanced book mo

Re: Hiding NSImageView

2008-06-01 Thread Hamish Allan
On Sun, Jun 1, 2008 at 11:07 PM, Damien Cooke <[EMAIL PROTECTED]> wrote: > finding any other way of hiding them is eluding me. NSImageView derives from NSView, which has a "hidden" property. But you might find a tabless NSTabView easier: programmatically switching between two tabs, one for each m

Hiding NSImageView

2008-06-01 Thread Damien Cooke
Hi all, I need to be able to display either one or two images on the screen and the choice is made by the user via a button. So I have built my interface with three ImageWells one large ImageWell and also two 1/2 the size I want to be able to turn them on and off with a button but I can f

Re: Xcode - IB problems

2008-06-01 Thread Ashley Perrien
Usually, when I have the trouble described by the OP, I have some typos in my .h files for the classes. Which was the problem here, only noticed it a few minutes after sending the email. I think I'm just forgetting some basic syntax peculiarities. Sorry for the clutter. Ashley Perrien Pon

Re: Xcode - IB problems

2008-06-01 Thread Jason Stephenson
Hamish Allan wrote: On Sun, Jun 1, 2008 at 8:56 PM, Ashley Perrien <[EMAIL PROTECTED]> wrote: Should I create all the actions and outlets in IB and let it create the class? No. I'm not even sure that's possible in the latest version of IB. What version are you using? It is still possible, b

Re: KVO: I get called on change, but then can't get the object

2008-06-01 Thread Quincey Morris
On Jun 1, 2008, at 12:49, Hamish Allan wrote: On Sun, Jun 1, 2008 at 1:02 AM, Scott Anguish <[EMAIL PROTECTED]> wrote: swearing isn't appropriate here. :-) After Apple have failed to fix this glaring known bug after another two major releases of the operating system? I beg to differ :P H

Re: Xcode - IB problems

2008-06-01 Thread Hamish Allan
On Sun, Jun 1, 2008 at 8:56 PM, Ashley Perrien <[EMAIL PROTECTED]> wrote: > Should I create all the actions and outlets in IB and let it create the > class? No. I'm not even sure that's possible in the latest version of IB. What version are you using? Hamish _

Xcode - IB problems

2008-06-01 Thread Ashley Perrien
I'm working my my way though the new edition of Cocoa programming and am having some problems with XCode and Interface Builder. 1) I'll create a project in XCode and save. 2) switch to IB (via the MainMenu.nib to get the layout down. Save. 3) Create a new class in XCode, put in a few IBActions a

Re: KVO: I get called on change, but then can't get the object

2008-06-01 Thread Hamish Allan
On Sun, Jun 1, 2008 at 1:02 AM, Scott Anguish <[EMAIL PROTECTED]> wrote: > swearing isn't appropriate here. :-) After Apple have failed to fix this glaring known bug after another two major releases of the operating system? I beg to differ :P Hamish __

Re: Predicate expressions

2008-06-01 Thread Hamish Allan
On Sun, Jun 1, 2008 at 8:26 PM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Sat, May 31, 2008 at 4:57 PM, Fabian <[EMAIL PROTECTED]> wrote: >> NSArray *arrayB = [self getObjects] ; >> >> NSArray *titles = [arrayB arrayByApplyingSelector:@selector(title)]; >> NSArray *subtitles = [arrayB arrayByApp

Re: Predicate expressions

2008-06-01 Thread Hamish Allan
On Sat, May 31, 2008 at 9:57 PM, Fabian <[EMAIL PROTECTED]> wrote: > I'm trying to figure out how to use NSExpressions in a predicate but > find the documentation a bit deficient. I'm not convinced it's a documentation issue! You could achieve what you want to do by creating a transient, read-on

Re: Predicate expressions

2008-06-01 Thread Kyle Sluder
On Sat, May 31, 2008 at 4:57 PM, Fabian <[EMAIL PROTECTED]> wrote: > NSArray *arrayB = [self getObjects] ; > > NSArray *titles = [arrayB arrayByApplyingSelector:@selector(title)]; > NSArray *subtitles = [arrayB arrayByApplyingSelector:@selector(subtitle)]; > > NSPredicate *predicate = [NSPredicate

Re: Alert Sheets hard wired in Interface Builder

2008-06-01 Thread Nathan Kinsinger
On Jun 1, 2008, at 12:19 PM, John Love wrote: 1) I found the culprit on the sheet appearing as a separate window, and not a sheet .. you were right cause somehow the passed docWindow was apparently nil .. anyway, called my sheet routine from a different part of MyDocument.m .. and now the

Re: Alert Sheets hard wired in Interface Builder

2008-06-01 Thread Jens Alfke
On 1 Jun '08, at 11:19 AM, John Love wrote: the NSAlert is type-cast as a NSWindow when passed to my dlgEndSelector, so that "unrecognized selector" is mystifying. That's your problem, then: NSAlert isn't an NSWindow; it's a direct subclass of NSObject. Your -endCalculateSheet: method's fir

Re: NSColorWell and alpha

2008-06-01 Thread Mike
That seems to do the trick. Thanks! Ken Ferry kirjoitti 1.6.2008 kello 19:33: Hi Mike, This is controlled by -[NSColorPanel setShowsAlpha:]. Try calling [[NSColorPanel sharedColorPanel] setShowsAlpha:YES]. -Ken On Sun, Jun 1, 2008 at 9:23 AM, Mike <[EMAIL PROTECTED]> wrote: I have NSColorW

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread John Harper
Hi, if you think you've found a memory leak inside of CoreAnimation, please file a radar (bugreporter.apple.com) with a project showing the leak, and we'll look into it. thanks, John On Jun 1, 2008, at 10:58 AM, Stéphane Droux wrote: On Sun, Jun 1, 2008 at 6:31 PM, Brian Christen

Re: Alert Sheets hard wired in Interface Builder

2008-06-01 Thread John Love
1) I found the culprit on the sheet appearing as a separate window, and not a sheet .. you were right cause somehow the passed docWindow was apparently nil .. anyway, called my sheet routine from a different part of MyDocument.m .. and now the sheet appears as a sheet. 2) the problem remaining cen

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Stéphane Droux
On Sun, Jun 1, 2008 at 6:31 PM, Brian Christensen <[EMAIL PROTECTED]> wrote: > > I would consider that to be expected behavior. If you aren't ever releasing > the layers you created, why would any of the relevant memory be freed? The > timer and the animations it is causing to be performed should

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Brian Christensen
On Jun 1, 2008, at 10:28 , Stéphane Droux wrote: If you kill the timer after its been running for a while, does the memory usage drop back down? Maybe the implicit animations are never completing before a new one gets added, so they're just stacking up on top of each other. I don't think

Re: Graphing With Google Charts API

2008-06-01 Thread Robert Douglas
I'm don't know about open source, but I agree that currently DataGraph is the best bet, and it is what I'm using for a couple of scientific projects. GC compatible too. Rob On 1-Jun-08, at 7:20 AM, Ben Einstein wrote: I looked into this before. While Google's API is pretty good, it takes

Re: NSColorWell and alpha

2008-06-01 Thread Ken Ferry
Hi Mike, This is controlled by -[NSColorPanel setShowsAlpha:]. Try calling [[NSColorPanel sharedColorPanel] setShowsAlpha:YES]. -Ken On Sun, Jun 1, 2008 at 9:23 AM, Mike <[EMAIL PROTECTED]> wrote: > I have NSColorWell on my form bind to NSColor property in my > Controller-object. > In IB there

NSColorWell and alpha

2008-06-01 Thread Mike
I have NSColorWell on my form bind to NSColor property in my Controller-object. In IB there is an alpha-slider available in that colorwell to modify color opacity value but during runtime there isn't such. Is that bydesign or am I missing something? Thanks. __

Re: runloops and NSURLConnection

2008-06-01 Thread Jean-Daniel Dupas
Le 1 juin 08 à 14:27, Torsten Curdt a écrit : If you handle the modal session yourself, it's easy to let the connection do some processing while the modal window is open: Replace -[NSApp runModalForWindow:[self window]] by this and it should do the trick. /* Create a modal session, and

Re: how to implement ETA

2008-06-01 Thread Jens Alfke
On 1 Jun '08, at 5:50 AM, Nick Rogers wrote: I want to show time remaining while executing a loop. How to go about it? Basic algebra, mostly. Compute the elapsed time (current time minus time the loop started), divide by the number of iterations so far [that gives you the time per iterati

Re: Copying NSTextStorage

2008-06-01 Thread Ross Carter
On May 31, 2008, at 7:49 PM, Gordon Apple wrote: apparently NSTextView will accept nothing but the original NSTextStorage -- no subclasses allowed, even without any overrides. Nope. To subclass NSTextStorage, see http://www.cocoabuilder.com/archive/message/cocoa/2002/2/5/14848 __

Re: NSPredicate: To be, or not to be

2008-06-01 Thread stephen joseph butler
On Sun, Jun 1, 2008 at 9:17 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > When I use an NSMetadataQuery with the NSPredicate "To be, or not to be;"> it seems to find all documents which contain these > words in any order; and as they are kind of common, it finds 23363 files. > > Not quite w

Re: Core data. Programmatically setting relationships

2008-06-01 Thread mmalc crawford
On Jun 1, 2008, at 1:28 AM, Steven Hamilton wrote: What I can't do is set change the relationships. In my tableView I'm displaying the Account name in the toAccount and fromAccount columns. I want to be able to type a new Account.name in there and have the Transaction object update the rel

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Stéphane Droux
On Sun, Jun 1, 2008 at 3:18 PM, Jonathan del Strother < [EMAIL PROTECTED]> wrote: > > > If you kill the timer after its been running for a while, does the > memory usage drop back down? Maybe the implicit animations are never > completing before a new one gets added, so they're just stacking up o

Re: Graphing With Google Charts API

2008-06-01 Thread Ben Einstein
I looked into this before. While Google's API is pretty good, it takes a bunch of work to customize charts and graphs just the way you want. I believe there's also a limit on the number of charts a given user can generate, although I can't recall what this number is. After playing with all

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Jonathan del Strother
On 6/1/08, Stéphane Droux <[EMAIL PROTECTED]> wrote: > On Sun, Jun 1, 2008 at 1:40 PM, Brian Christensen <[EMAIL PROTECTED]> wrote: > >> >> Even with this new code I'm still not observing any leaking. Are you using >> garbage collection? With GC enabled you will observe fluctuations until >> the >>

NSPredicate: To be, or not to be

2008-06-01 Thread Gerriet M. Denkmann
When I use an NSMetadataQuery with the NSPredicate it seems to find all documents which contain these words in any order; and as they are kind of common, it finds 23363 files. Not quite what I intended. Actually I am looking for those documents which contain this string exactly as writte

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Stéphane Droux
On Sun, Jun 1, 2008 at 1:40 PM, Brian Christensen <[EMAIL PROTECTED]> wrote: > > Even with this new code I'm still not observing any leaking. Are you using > garbage collection? With GC enabled you will observe fluctuations until the > collector gets a chance to free up unused memory, but even the

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Stéphane Droux
On Sun, Jun 1, 2008 at 1:15 PM, Gustavo Eulalio <[EMAIL PROTECTED]> wrote: > Well, I'm novice to Cocoa/ObjC programming, so, I might be wrong. But > I see you're setting a new frame on l2 every time fromTimer: is > called, but you never release the old one. The following may solve it, > if that's

how to implement ETA

2008-06-01 Thread Nick Rogers
Hi, I want to show time remaining while executing a loop. How to go about it? WIshes, nick ___ 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-

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Brian Christensen
On Jun 1, 2008, at 5:03 , Stéphane Droux wrote: I've changed the timer function to do random animations and this time it really "leaks": - (void) fromTimer: (NSTimer *) t { l2.frame = CGRectMake((double)random() / RAND_MAX*30, (double)random() / RAND_MAX*30, (double)random() / RAND_MAX*

Re: runloops and NSURLConnection

2008-06-01 Thread Torsten Curdt
On May 31, 2008, at 19:54, Jens Alfke wrote: On 31 May '08, at 10:14 AM, Torsten Curdt wrote: Indeed - modal is smelly ...and I have considered non-modal. It would make my life easier. But since I have just integrated your exception handling into the FeedbackReporter framework ...wouldn'

Re: runloops and NSURLConnection

2008-06-01 Thread Torsten Curdt
If you handle the modal session yourself, it's easy to let the connection do some processing while the modal window is open: Replace -[NSApp runModalForWindow:[self window]] by this and it should do the trick. /* Create a modal session, and in each loop, we process the default runloop

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Gustavo Eulalio
Well, I'm novice to Cocoa/ObjC programming, so, I might be wrong. But I see you're setting a new frame on l2 every time fromTimer: is called, but you never release the old one. The following may solve it, if that's the problem. - (void) fromTimer: (NSTimer *) t { [l2.frame release] l2.fram

Re: email

2008-06-01 Thread has
Chris Page wrote: Importing messages from Mail via AppleScript may not be fast enough — my highly scientific estimate* is "a couple of messages" a second. Importing someone's entire mail archive would take a long time. I just did a test and it's quite fast if you ask for all the messages at o

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Stéphane Droux
On Sun, Jun 1, 2008 at 8:49 AM, Brian Christensen <[EMAIL PROTECTED]> wrote: > On Jun 1, 2008, at 2:55 , Stéphane Droux wrote: > > When I run the program in Mallocdebug, it seems that one of the threads >> used >> by Core Animation to animate the layers doesn't release its memory. >> So it looks

Re: Core data. Programmatically setting relationships

2008-06-01 Thread Steven Hamilton
Oh no, replying to my own mail! Fairly certain I have to do a fetch for the Account object with that name. So something like; - (void)tableView:(NSTableView *)tableView setObjectValue:(id)newValue forTableColumn:(NSTableColumn *)tableColumn row:(int)row { [[transactions objectAtIndex:row]

Re: email

2008-06-01 Thread has
Jens Alfke wrote: I'm not familiar with the "log" command — where does it put the output? Depends on the application. e.g. Script Editor writes them to the script window's Event Log tab if it's selected (along with every event and its reply, which is why it's best not to use that tab fo

Core data. Programmatically setting relationships

2008-06-01 Thread Steven Hamilton
Hi folks, Back again with more Core Data puzzles. I have entities like so; Account; NSStringname relationshipcredit relationshipdebit Transaction; NSStringname NSDate date relationshiptoAccount (reverse of credit in Account entity) relationshipfrom

Re: sorting an NSTableView

2008-06-01 Thread Vijay Malhan
On Sun, Jun 1, 2008 at 5:53 AM, James W. Walker <[EMAIL PROTECTED]> wrote: > > On May 30, 2008, at 5:04 AM, Vijay Malhan wrote: > > An Example: >> mTable = member instance for your TableView >> mData = member array which provides the data-objects. >> >> Put the following code at a place where you

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Brian Christensen
On Jun 1, 2008, at 2:55 , Stéphane Droux wrote: When I run the program in Mallocdebug, it seems that one of the threads used by Core Animation to animate the layers doesn't release its memory. So it looks like a bug in Core Animation. However, since animating non-leaf layers is such a core f