Re: Collections can be simple Attributes in Core Data

2008-10-07 Thread Negm-Awad Amin
Am Di,30.09.2008 um 19:58 schrieb I. Savant: On Mon, Sep 29, 2008 at 3:03 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: But now I find there is an even more natural way, which is to just leave them as a set or array, and store in an attribute of type Transformable. The default transforme

Re: Collections can be simple Attributes in Core Data

2008-10-07 Thread Negm-Awad Amin
Am Do,02.10.2008 um 00:16 schrieb Jerry Krinock: On 2008 Sep, 30, at 10:58, I. Savant wrote: The 'correct' approach depends entirely on the model. Yes, I appreciated Amin's thoughts but didn't have much to add. An important step in modelling is to draw a potato around the part of the

Re: NSWindowController retain counts, chapter 2

2008-10-07 Thread Negm-Awad Amin
Am Di,07.10.2008 um 04:56 schrieb James Walker: […] How do you know the window isn't being deallocated? Examining retain counts is not going to tell you whether it is or not. The only way would be to subclass it and log the -dealloc method. That's exactly what I did. The dealloc method w

Getting NSTimer to work after an NSThread completes?

2008-10-07 Thread Alex Reynolds
When I press my interface button, it calls: [NSThread detachNewThreadSelector:@selector(initializeData) toTarget:self withObject:nil]; This calls: - (void) initializeData { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; ... initi

Re: Getting NSTimer to work after an NSThread completes?

2008-10-07 Thread Jason Coco
On Oct 7, 2008, at 04:06 , Alex Reynolds wrote: However, if I skip the NSThread instantiation step, then my NSTimer starts working again. I have also tried: [[NSRunLoop currentRunLoop] addTimer:myNSTimer forMode:NSDefaultRunLoopMode]; in my new view, but this does not work either. What

Re: comparing Strings.

2008-10-07 Thread Gerriet M. Denkmann
On 7 Oct 2008, at 09:20, cGraham Cox <[EMAIL PROTECTED]> wrote: On 7 Oct 2008, at 4:22 pm, Sandro Noel wrote: i'm having a problem comparing some type of strings, for example the one giving me a problem right now. is let's say in my database i have 4 version of the same string . "sandro's co

Re: comparing Strings.

2008-10-07 Thread Negm-Awad Amin
A littlebit tricky (probably ugly), but shorter: NSArray* components = [source componentsSeperatedByCharactersInSet: [NSCharacterSet …]]; NSString* result = [components componentsJoinedByString:@""]; ;-) Cheers Am Di,07.10.2008 um 11:55 schrieb Graham Cox: On 7 Oct 2008, at 7:46 pm, Ger

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Bill Dudney
Hi Frank, That and a whole lot more; http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/predicates.html#/ /apple_ref/doc/uid/TP40001798 Good luck! -bd- http://bill.dudney.net/roller/objc On Oct 7, 2008, at 3:49 AM, Frank Illenberger wrote: Hi everybody, does anybody kno

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Negm-Awad Amin
Am Di,07.10.2008 um 14:04 schrieb Frank Illenberger: Hi Bill, I tried using predicates for this but did not succeed. What would a predicate look like which finds the object of an entity with the maximum value for a property? In contrast to Bill I think, that this is not possible with predi

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Frank Illenberger
Hello Negm-Awad, thanks for helping. The idea with the fetch limit and the descending order solves my problem as I am using a SQLite store. Cheers Frank On Oct 7, 2008, at 2:59 PM, Negm-Awad Amin wrote: In contrast to Bill I think, that this is not possible with predicates. Why? You w

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Steve Steinitz
Hi Frank, You wrote Hi Bill, I tried using predicates for this but did not succeed. What would a predicate look like which finds the object of an entity with the maximum value for a property? I haven't done exactly what you want but if you have an object that has a to many relationship to

Re: Problems with loose ViewController coupling and KVO to-many relationships

2008-10-07 Thread Benjamin Stiglitz
There's a design flaw here somewhere, but I can't quite figure out what it is. It's highlighted by trying to reorder widgets. With KVC to-many relationships, there's no atomic way of moving an object from one position in an array to another : you remove the object, then re-insert it at the new l

Re: comparing Strings.

2008-10-07 Thread Graham Cox
On 7 Oct 2008, at 7:46 pm, Gerriet M. Denkmann wrote: On 7 Oct 2008, at 09:20, cGraham Cox <[EMAIL PROTECTED]> wrote: On 7 Oct 2008, at 4:22 pm, Sandro Noel wrote: i'm having a problem comparing some type of strings, for example the one giving me a problem right now. is let's say in my dat

Re: IKImageView and delegate callback/notification of image changes

2008-10-07 Thread Benjamin Stiglitz
Has anyone come across a solution for knowing when the image has been edited? You should be able to use KVO to be notified when the image property of the IKImageView changes. -Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

NSNotificationQueue EXC_BAD_ACCESS problems

2008-10-07 Thread Karan, Cem (Civ, ARL/CISD)
I'm having a great deal of trouble getting my notification queue to work correctly. It always causes a EXC_BAD_ACCESS whenever I post using NSPostASAP or NSPostWhenIdle, but it works when I post using NSPostNow. Here are the relevant lines of code: -(void) testMethod { NSNotification *tem

Re: Wasted Space and Kernighan

2008-10-07 Thread Bill Mutch
First let me say that the views expressed by Michael Ash are almost identical to mine. However, I have to take issue with the often quoted statement of Kernighan on debugging. "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as

Re: IKImageView and delegate callback/notification of image changes

2008-10-07 Thread Jim Turner
Hi Ben Binding to my IKImageView's "image" property nets the following: [ addObserver: forKeyPath:@"image" options:0x7 context:0x1adc3c30] was sent to an object that is not KVC-compliant for the "image" property. Is "image" not the key to which I should be binding? Jim On Tue, Oct 7, 2008 at 9

Re: NSNotificationQueue EXC_BAD_ACCESS problems

2008-10-07 Thread Julien Jalon
Try your code by enabling NSZombies (Add NSZombieEnabled=YES to the environment before launching your tool/app). This should show you what object is supposed to get messaged. I suspect some object observes your notification but is deallocated. -- Julien On Tue, Oct 7, 2008 at 4:28 PM, Karan, Cem

Re: apple remote

2008-10-07 Thread Memo Akten
cool thanks... On 6 Oct 2008, at 07:31, Simone Tellini wrote: Il giorno 06/ott/08, alle ore 05:38, Memo Akten ha scritto: Hi All, I was wondering how straightforward it is to write an app that responds to Apple Remote events. would I get them in - (void) sendEvent:(NSEvent*)event ? I us

RE: [Disarmed] Re: NSNotificationQueue EXC_BAD_ACCESS problems

2008-10-07 Thread Karan, Cem (Civ, ARL/CISD)
That was it! Thanks, I should have checked for that first. Thanks, Cem Karan > -Original Message- > From: Julien Jalon [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 07, 2008 10:39 AM > To: Karan, Cem (Civ, ARL/CISD) > Cc: cocoa-dev@lists.apple.com > Subject: [Disarmed] Re: NSNotifi

CoreData: Fetching object with maximum of property

2008-10-07 Thread Frank Illenberger
Hi everybody, does anybody know if CoreData under Leopard offers a way to fetch the object of an entity which the maximum of a certain property value, but without having to fetch all objects into memory? Cheers Frank ___ Cocoa-dev mailing list

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Frank Illenberger
Hi Bill, I tried using predicates for this but did not succeed. What would a predicate look like which finds the object of an entity with the maximum value for a property? Frank On Oct 7, 2008, at 1:08 PM, Bill Dudney wrote: Hi Frank, That and a whole lot more; http://developer.apple.com

Re: Downloading with NSData and NSFileManager

2008-10-07 Thread Mike Abdullah
If you want to literally just download a file, the simple option is to use NSURLDownload. It's fairly straightforward, an asynchronous. On 6 Oct 2008, at 18:04, Mark Thomas wrote: Hi All, I was looking at downloading some files, and started to look at NSFileManager to create the file, and th

Re: Getting NSTimer to work after an NSThread completes?

2008-10-07 Thread Alex Reynolds
On Oct 7, 2008, at 1:42 AM, Jason Coco wrote: [[NSRunLoop mainRunLoop] addTimer:myNSTimer forMode:NSDefaultRunLoopMode]; Thanks for the quick response. Unfortunately, this did not work. The 'myNSTimer' never fires. As a workaround, I tried to update the new view with: [NSThread detachNe

[Meeting] Toronto Area Cocoa and WebObjects Developer Group - October 21

2008-10-07 Thread Karl Moskowski
The next meeting of tacow / Cocoaheads Toronto will be held on Tuesday, October 21 at 6:30 PM at Ryerson University. Note that this meeting is a week later than originally scheduled because of the federal election. More info and directions are available at . Th

defaultCenter's addObserver

2008-10-07 Thread John Love
From MyDocument's windowControllerDidLoadNib I call a method in MyController, which in turn calls: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(aSelector:) name:aName object:anotherControllerObject]; The docs state that this passed object is the object that is

Re: Universal app fails on PPC.

2008-10-07 Thread Sean McBride
On 10/6/08 5:58 PM, Nick Zitzmann said: >> I'm trying to test my universal app to make sure its really universal. >> In finder I did "get info" then selected "run with rosetta". When I do >> that the application traps. The console log says, >> >> Exited abnormally: Trace/BPT trap >> >> What does t

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Negm-Awad Amin
Am Di,07.10.2008 um 15:12 schrieb Frank Illenberger: Hello Negm-Awad, thanks for helping. Nicht dafür! The idea with the fetch limit and the descending order solves my problem as I am using a SQLite store. Sonst hättest du auch nicht das Problem. ;-) Liebe Grüße Amin Cheers Frank O

Re: Problems with loose ViewController coupling and KVO to-many relationships

2008-10-07 Thread Jonathan del Strother
On Tue, Sep 30, 2008 at 8:19 PM, Jonathan del Strother <[EMAIL PROTECTED]> wrote: > Heya > I'm struggling a bit with NSViewControllers. My app displays a list > of widgets. I have a Widget model, a WidgetView view (an NSView > subclass), and a WidgetViewController (an NSViewController subclass).

Re: Getting NSTimer to work after an NSThread completes?

2008-10-07 Thread Michael Ash
On Tue, Oct 7, 2008 at 4:42 AM, Jason Coco <[EMAIL PROTECTED]> wrote: > Your notification is getting dispatched to the wrong thread. If you can > target 10.5, do this: > > [[NSRunLoop mainRunLoop] addTimer:myNSTimer forMode:NSDefaultRunLoopMode]; Please *don't* do this. NSRunLoop is not thread saf

Re: defaultCenter's addObserver

2008-10-07 Thread j o a r
On Oct 7, 2008, at 8:26 AM, John Love wrote: So just for whatever, I pass object:nil to addObserver:selector:name:object:. Then, within my selector I test for the type of passed encapsulated object and something(?) doesn't work. My selector gets called for my first new MyDocument. But when

cross development, missing methods

2008-10-07 Thread Robert Nikander
Hi, In short, my question is: when cross developing for multiple OS versions, how do people deal with Objective-C methods that exist in only some of the versions? Do you have multiple targets compiling against different SDKs? Details... I'm on 10.5 with Xcode 3.1 and I tried to create a

Re: Universal app fails on PPC.

2008-10-07 Thread Mark Allan
At 8:08 pm -0400 06/10/2008, David Melgar wrote: Given that I don't have access to a ppc machine, sounds like I can't test if it works. Given that it's obviously a leopard only application, I'm not sure if I should claim support for ppc and have a user complain if it doesn't work, or drop the

Re: cross development, missing methods

2008-10-07 Thread Nick Zitzmann
On Oct 7, 2008, at 10:19 AM, Robert Nikander wrote: I was hoping I could get the compiler to warn me about these things. Is there a compiler flag that helps? Or should I forget about the "Deployment Target" build setting and create multiple targets or projects that use different SDKs?

Appropriate use of bindings?

2008-10-07 Thread Karan, Cem (Civ, ARL/CISD)
I'm having a slight dilemma in deciding which I should use, notifications or bindings. Here is the background: I have a bunch of C++ code that uses something akin to delegates; you derive from a base class, pass that into an instance of a server class, and the server class calls the delegate

Re: IKImageView and delegate callback/notification of image

2008-10-07 Thread Dave Jewell
On Tue, 7 Oct 2008 at 09:38:01, Jim Turner said: Binding to my IKImageView's "image" property nets the following: [ addObserver: forKeyPath:@"image" options:0x7 context:0x1adc3c30] was sent to an object that is not KVC-compliant for the "image" property. Is "image" not the key to which I should

Parsing integers from strings

2008-10-07 Thread Cyrus Najmabadi
I've been unsuccessful finding the right class in cocoa to help me parse integers inside NSStrings. I'm looking for something similar to java's Long.parseInt(string, radix). i.e. something that can understand a stream of numbers along with a specified radix (which may be 8, 10 or 16 in my use case

Issue with modal window

2008-10-07 Thread Nickolay Knyazev
I have an issue with modal window, which is annoying me for last few days. I have an IBAction, in which my application starts execution of an asynchronous operation. This operation executes on a background thread and has callbacks which are invoked on that thread as well. In a callback I have to u

Manipulate the NSTextview, several questions...

2008-10-07 Thread Cloud Strife
Hi everyone. I am using the NSTextview to perform some functions of my application. I want to implement: 1. The NSTextiview has several lines of output, when the user click(or double-click) one line of the text, I want to the NSTextview to highlight the line which the user clicked with some light c

Re: Appropriate use of bindings?

2008-10-07 Thread Shawn Erickson
On Tue, Oct 7, 2008 at 9:31 AM, Karan, Cem (Civ, ARL/CISD) <[EMAIL PROTECTED]> wrote: > My dilemma is how to do this hookup; I can use either notifications or > bindings, but I can't decide which is better in this situation. Bindings > seem to be simpler to use, but reading about them suggests

Re: Parsing integers from strings

2008-10-07 Thread Randall Meadows
On Oct 6, 2008, at 11:08 PM, Cyrus Najmabadi wrote: I've been unsuccessful finding the right class in cocoa to help me parse integers inside NSStrings. I'm looking for something similar to java's Long.parseInt(string, radix). i.e. something that can understand a stream of numbers along with

Re: Appropriate use of bindings?

2008-10-07 Thread Shawn Erickson
On Tue, Oct 7, 2008 at 10:44 AM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > On Tue, Oct 7, 2008 at 9:31 AM, Karan, Cem (Civ, ARL/CISD) > <[EMAIL PROTECTED]> wrote: > >> My dilemma is how to do this hookup; I can use either notifications or >> bindings, but I can't decide which is better in this s

Re: Parsing integers from strings

2008-10-07 Thread Jean-Daniel Dupas
Le 7 oct. 08 à 07:08, Cyrus Najmabadi a écrit : I've been unsuccessful finding the right class in cocoa to help me parse integers inside NSStrings. I'm looking for something similar to java's Long.parseInt(string, radix). i.e. something that can understand a stream of numbers along with a

Re: NSWindowController retain counts, chapter 2

2008-10-07 Thread James Walker
Negm-Awad Amin wrote: Am Di,07.10.2008 um 04:56 schrieb James Walker: […] How do you know the window isn't being deallocated? Examining retain counts is not going to tell you whether it is or not. The only way would be to subclass it and log the -dealloc method. That's exactly what I did.

Re: Appropriate use of bindings?

2008-10-07 Thread Citizen
The following article discusses five different approaches to the Observer Pattern in Cocoa, it may be of some use: http://cocoawithlove.com/2008/06/five-approaches-to-listening-observing.html - Dave On 7 Oct 2008, at 17:31, Karan, Cem (Civ, ARL/CISD) wrote: I'm having a slight dilemma in deci

Re: NSWindowController retain counts, chapter 2

2008-10-07 Thread Shawn Erickson
On Tue, Oct 7, 2008 at 11:05 AM, James Walker <[EMAIL PROTECTED]> wrote: > I think the important thing is that the window was not getting deallocated. > After more experimentation, this seems to be another symptom of the same > basic problem as in my previous NSWindowController thread, which is t

Re: Appropriate use of bindings?

2008-10-07 Thread Karan, Cem (Civ, ARL/CISD)
> -- > > Message: 16 > Date: Tue, 7 Oct 2008 19:19:27 +0100 > From: Citizen <[EMAIL PROTECTED]> > Subject: Re: Appropriate use of bindings? > To: Cocoa List > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > Th

Re: NSWindowController retain counts, chapter 2

2008-10-07 Thread James Walker
Shawn Erickson wrote: On Tue, Oct 7, 2008 at 11:05 AM, James Walker <[EMAIL PROTECTED]> wrote: I think the important thing is that the window was not getting deallocated. After more experimentation, this seems to be another symptom of the same basic problem as in my previous NSWindowController

Next Key View doesn't "go to" pushbutton

2008-10-07 Thread John Velman
I've got a number of text boxes to be filled in by the user. Tab order works fine using next key view in IB. After filing the last box, I'd like the user to be able to tab to a "commit" button, but next key view doesn't go there, even though the IB heads up boxes and inspector panes show that it

File's owner as target of button-action

2008-10-07 Thread Andreas Eriksson
I have a nib-file with the File's Owner class set to my own subclass of NSViewController. The nib-file also contains a custom view with a button whose target and action is set to a method in File's Owner. The trouble is that I get EXC_BAD_ACCESS when I click the button and it tries to call my acti

Re: Parsing integers from strings

2008-10-07 Thread Cyrus Najmabadi
Unfortunately, NSScanner seems insufficient. It doesn't seem able to handle 64bit hexadecimal numbers. Also, i don't see any facility for octal numbers. -- Cyrus On Tue, Oct 7, 2008 at 1:50 PM, Randall Meadows <[EMAIL PROTECTED]>wrote: > On Oct 6, 2008, at 11:08 PM, Cyrus Najmabadi wro

Re: NSWindowController retain counts, chapter 2

2008-10-07 Thread Shawn Erickson
On Tue, Oct 7, 2008 at 11:42 AM, James Walker <[EMAIL PROTECTED]> wrote: > Shawn Erickson wrote: >> >> On Tue, Oct 7, 2008 at 11:05 AM, James Walker <[EMAIL PROTECTED]> >> wrote: >> >>> I think the important thing is that the window was not getting >>> deallocated. >>> After more experimentation,

Getting the values from the selected row of a table?

2008-10-07 Thread John Velman
I need to get the value of the primary key (shown in the table) of the selected row of my table, no matter how the table is sorted interactively. I'm able to get the selected row index, but this seems to give the "geographic" index of the selected row in the table, as sorted. So far, I've solved

Re: Parsing integers from strings

2008-10-07 Thread Nick Zitzmann
On Oct 7, 2008, at 12:49 PM, Cyrus Najmabadi wrote: Unfortunately, NSScanner seems insufficient. It doesn't seem able to handle 64bit hexadecimal numbers. Also, i don't see any facility for octal numbers. For 64-bit hex numbers, as well as octal numbers, you can use strtoll(). See its

Re: File's owner as target of button-action

2008-10-07 Thread I. Savant
On Oct 7, 2008, at 2:34 PM, Andreas Eriksson wrote: I guess I have misunderstood something here. Is there something special about File's Owner that prevents this from working? There's not enough information here to answer your question. You should post: 1 - How you instantiate your cus

Re: Next Key View doesn't "go to" pushbutton

2008-10-07 Thread Jeff Johnson
John, In System Preferences, Keyboard & Mouse, Keyboard Shortcuts, is Full keyboard access set to All controls? -Jeff On Oct 7, 2008, at 1:47 PM, John Velman wrote: I've got a number of text boxes to be filled in by the user. Tab order works fine using next key view in IB. After filing

Re: File's owner as target of button-action

2008-10-07 Thread Andreas Eriksson
>> I guess I have misunderstood something here. Is there something special >> about >> File's Owner that prevents this from working? > > There's not enough information here to answer your question. You should > post: > > 1 - How you instantiate your custom NSViewController class and load the nib.

Re: Getting the values from the selected row of a table?

2008-10-07 Thread I. Savant
On Oct 7, 2008, at 2:55 PM, John Velman wrote: I'm able to get the selected row index, but this seems to give the "geographic" index of the selected row in the table, as sorted. Why don't you get the selected object from your array controller directly, then ask it for the value of its prim

Re: NSWindowController retain counts, chapter 2

2008-10-07 Thread James Walker
Shawn Erickson wrote: Based on what you are describing it sure sounds like some long lived auto-release pool exists that is collecting objects to release yet isn't being draining in a timely fashion. Maybe so, but if so it's created by the OS, not me. I've done a global search of my code fo

Re: Next Key View doesn't "go to" pushbutton

2008-10-07 Thread Randy Bradley
You could override the controlTextDidEndEditing method: - (void)controlTextDidEndEditing:(NSNotification *)aNotification{ ... if([[[aNotification userInfo] valueForKey:@"NSTextMovement"] intValue] == NSReturnTextMovement) { // invoke whatever button pressed code.

Re: Parsing integers from strings

2008-10-07 Thread mmalc crawford
On Oct 7, 2008, at 11:49 AM, Cyrus Najmabadi wrote: Unfortunately, NSScanner seems insufficient. It doesn't seem able to handle 64bit hexadecimal numbers. From NSScanner.h, on Mac OS X v10.5 and later: - (BOOL)scanHexLongLong:(unsigned long long *)result; - (BOOL)scanHexFloat:(float *)result;

Re: Parsing integers from strings

2008-10-07 Thread Cyrus Najmabadi
"(On this occasion, please don't file a bug about the omission of these methods from the documentation...)" Why not? (or is it something that you're already doing. if so, thanks!) -- Cyrus On Tue, Oct 7, 2008 at 3:49 PM, mmalc crawford <[EMAIL PROTECTED]> wrote: > > On Oct 7, 2008, at

Re: Parsing integers from strings

2008-10-07 Thread mmalc crawford
On Oct 7, 2008, at 12:59 PM, Cyrus Najmabadi wrote: Why not? (or is it something that you're already doing. if so, thanks!) Already done. mmalc ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: Next Key View doesn't "go to" pushbutton

2008-10-07 Thread John Velman
On Tue, Oct 07, 2008 at 02:09:05PM -0500, Jeff Johnson wrote: > John, > > In System Preferences, Keyboard & Mouse, Keyboard Shortcuts, is Full > keyboard access set to All controls? > > -Jeff Blush. Fixing the Next key view sequence was simple. I'm not only new to Cocoa, new to Mac as well.

Re: Parsing integers from strings

2008-10-07 Thread Cyrus Najmabadi
Thanks much! -- Cyrus On Tue, Oct 7, 2008 at 4:07 PM, mmalc crawford <[EMAIL PROTECTED]> wrote: > > On Oct 7, 2008, at 12:59 PM, Cyrus Najmabadi wrote: > > Why not? (or is it something that you're already doing. if so, thanks!) >> >> Already done. > > mmalc > >

Re: Getting the values from the selected row of a table?

2008-10-07 Thread John Velman
Well, you're undoubtedly right that I'm "not quite getting bindings" yet, but I'm a lot closer than I was. I'll ponder what you've suggested and see whether I "get it" or can come up with some better questions! Thanks, John V. On Tue, Oct 07, 2008 at 03:10:27PM -0400, I. Savant wrote: > On Oct

Cocoaheads Lake Forest (92630) meeting 10/8/2008 at 7 pm on "Parallel Processing with a Core Data Store"

2008-10-07 Thread Scott Ellsworth
Hello, all, CocoaHeads Lake Forest will be meeting on the second Wednesday in October, 10/8, from 7 to 9 PM. We will meet in our usual location at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630. The A/C has been fixed, and there is much rejoic

Trouble with NSSplitView

2008-10-07 Thread Andre Masse
Hi, I have set up in IB a window with 3 split views. The main split view (with a vertical divider) contains 2 splits (horizontal divider): ** * * 3 * * 1 * *

Re: defaultCenter's addObserver

2008-10-07 Thread j o a r
On Oct 7, 2008, at 12:03 PM, John Love wrote: 2008-10-07 14:36:14.149 Calculate Medical[265:10b] *** -[NSCFSet calcStatusChanged:]: unrecognized selector sent to instance 0xe41f250 John, This type of error message indicates that your notification observer has been deallocated. This would

Re: Wasted Space and Kernighan

2008-10-07 Thread Colin Barrett
On Tue, Oct 7, 2008 at 7:30 AM, Bill Mutch <[EMAIL PROTECTED]> wrote: > Even a general conclusion is not valid unless by 'clever' he means > intentionally obtuse. I'm willing to give bwk the benefit of the doubt. I assumed he was giving a warning against cleverness for cleverness's sake, which is

Re: Manipulate the NSTextview, several questions...

2008-10-07 Thread Graham Cox
On 7 Oct 2008, at 6:50 pm, Cloud Strife wrote: Hi everyone. I am using the NSTextview to perform some functions of my application. I want to implement: 1. The NSTextiview has several lines of output, when the user click(or double-click) one line of the text, I want to the NSTextview to highli

Re: Getting the values from the selected row of a table?

2008-10-07 Thread Graham Cox
On 8 Oct 2008, at 5:55 am, John Velman wrote: I'm able to get the selected row index, but this seems to give the "geographic" index of the selected row in the table, as sorted. Because a table is a view, the selection is purely "geographic", since the table's job is to map an item of data

How can I access full source of a WebView

2008-10-07 Thread Ömer Kardaş
Hi I am trying to send the contents of a webwiew with email. I have found several ways to do that, but there are minor problems. // get the attributes string of the webview id res = (id )[[[myWebView mainFrame] frameView] documentView]; NSAttributedString *p = [res attribute

Re: How can I access full source of a WebView

2008-10-07 Thread Rob Keniger
On 08/10/2008, at 8:45 AM, Ömer Kardaş wrote: This works better. However external CSS code is not copied, which makes the page look different. When I select all and copy from the webview manualy and then paste it on a new mail window it works fine, the external CSS is copied as well. Is th

Re: Trouble with NSSplitView

2008-10-07 Thread Dave Fernandes
I had the same problem. The fix was to recreate the view in IB. Seems to be a bug in IB, but I never tried to repeat the problem once it was fixed. Dave On Oct 7, 2008, at 5:41 PM, Andre Masse wrote: Hi, I have set up in IB a window with 3 split views. The main split view (with a vertic

Re: How can I access full source of a WebView

2008-10-07 Thread Ömer Kardaş
Thanks Rob, I tried your way (DOMHTMLElement* el...) and it gave me the source. Unfortunatly it gives only source and does not include external files. I already tried your second approach. [pb setData:[[[myWebView mainFrameDocument] webArchive] data] forType:WebArchivePboardType]; I just

Re: Trouble with NSSplitView

2008-10-07 Thread Andre Masse
Tried your suggestion and it worked... almost. I now have trouble with the buttons under the text view. If I bring the divider all the way up, I need to bring the divider farther than it was to display the buttons. For example, if the divider was at 200 pixels from the top before "closing"

Re: Trouble with NSSplitView

2008-10-07 Thread Dave Fernandes
Is the part of the view with the buttons inside an NSScrollView? It should be scrollable if you are going to resize it with the splitview. If it is not scrollable, then you will have the problem you describe. Dave On Oct 7, 2008, at 8:59 PM, Andre Masse wrote: Tried your suggestion and it

Re: Trouble with NSSplitView

2008-10-07 Thread Jonathan Hess
On Oct 7, 2008, at 4:44 PM, Dave Fernandes wrote: I had the same problem. The fix was to recreate the view in IB. Seems to be a bug in IB, but I never tried to repeat the problem once it was fixed. This isn't a problem with IB, it also isn't unique to split views. The problem has to do wit

Re: Trouble with NSSplitView

2008-10-07 Thread Andre Masse
Thanks a lot for the explanation Jon. This makes it clear now. Thanks also to Dave. It was good to know I wasn't the only one struggling with this. Andre Masse On Oct 7, 2008, at 22:43, Jonathan Hess wrote: On Oct 7, 2008, at 4:44 PM, Dave Fernandes wrote: I had the same problem. The fix

Bottombar appearance

2008-10-07 Thread HAMILTON, Steven
Hi folks, The Apple HIG describes bottombars but gives graphical examples that I can't achieve. They are using mainly iCalc as an example. http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/chapter_18_section_4.html#//apple_ref/doc/uid/2961-SW6 I

Re: CoreData: Fetching object with maximum of property

2008-10-07 Thread Bill Dudney
Hi Frank, Sorry for not getting back sooner; http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/Articles/pBNF.html#/ /apple_ref/doc/uid/TP40001796-217785 documents the BNF which is very cryptic but tells you everything that can be in the expression. So something like thi

Re: Bottombar appearance

2008-10-07 Thread Rob Keniger
On 08/10/2008, at 1:18 PM, HAMILTON, Steven wrote: In iCalc, and iChat and probably many other Apple products the bottom bar and the toolbar has a black indentation line between the bar and the main content view giving a bas relief appearance to the main content. I've got a standard window

Re: Wasted Space and Kernighan

2008-10-07 Thread Brian Stern
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." -- Brian W. Kernighan Personally I find debugging to be half as hard as writing the code in the first plac

Re: comparing Strings.

2008-10-07 Thread Sandro Noel
Ok that's simple :) I Like it :) thanks you all !! On 7-Oct-08, at 6:32 AM, Negm-Awad Amin wrote: NSArray* components = [source componentsSeperatedByCharactersInSet: [NSCharacterSet …]]; NSString* result = [components componentsJoinedByString:@""]; __

Getting pointer to NSWindowController

2008-10-07 Thread Nirias
I am very new to cocoa and am trying to understand key value coding. I have a document app wherein the NSDocument creates the NSWindowController which loads a NIB that contains a NSView inside an NSWindow. The NSWindow contains the NSView and also a couple of NSTextFields bound to numerical prope

Re: Getting pointer to NSWindowController

2008-10-07 Thread Graham Cox
On 8 Oct 2008, at 4:00 pm, Nirias wrote: It seems I must be doing something wrong since the NSWindow class have a property for NSWIndowController isnt documented to always return NULL. And it is hard to believe that the architects of cocoa intended to require that every bit of shared da

Re: Core Data: Copying and pasting chained entities

2008-10-07 Thread Renaud Céroce
Hi ben, On Mon, 6 Oct 2008 19:41:46 -0700, Ben Trumbull <[EMAIL PROTECTED]> wrote: > There are a few examples floating around. > Could you point me at those articles ? I was not able to find them. > Typically, relationships are stored externally as either references > (NSManagedObjectID i