Re: ObjC in time-critical parts of the code

2009-01-16 Thread Jens Bauer
Hi Jeremy, On Jan 16, 2009, at 04:52, Jeremy Pereira wrote: On 15 Jan 2009, at 22:16, Jens Bauer wrote: ..often used around 3ms for the empty method -renderObject. It gave me the terrible result of up to 21ms spent in the empty method! -So I'd like to let you know that it's sometimes

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Jens Bauer
Hi Greg, On Jan 16, 2009, at 08:39, Greg Titus wrote: The point of what people are trying to tell you is that the result you are getting (3ms per empty Objective-C call) is approximately 500,000 times longer than the time you ought to be getting (5-6ns). If an Objective-C message send

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Jean-Daniel Dupas
Le 16 janv. 09 à 09:03, Jens Bauer a écrit : Hi Jeremy, On Jan 16, 2009, at 04:52, Jeremy Pereira wrote: On 15 Jan 2009, at 22:16, Jens Bauer wrote: ..often used around 3ms for the empty method -renderObject. It gave me the terrible result of up to 21ms spent in the empty method! -So

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Jean-Daniel Dupas
Le 16 janv. 09 à 09:27, Jens Bauer a écrit : Hi Greg, On Jan 16, 2009, at 08:39, Greg Titus wrote: The point of what people are trying to tell you is that the result you are getting (3ms per empty Objective-C call) is approximately 500,000 times longer than the time you ought to be

Protocol + Delegate = conflict types

2009-01-16 Thread Christian Giordano
Hi guys, I'm trying to implement the Delegate pattern and I would like a delegate that works like NSURLConnection where any method of the delegate returns itself. The problem I have is that if I specify its type in the methods parameters instead of id: // RemoteLoader.h @protocol

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Andrew Farmer
On 16 Jan 09, at 00:27, Jens Bauer wrote: From your guess at the end of your post, (message dispatcher servicing) it is pretty clear that you don't really know what is going on. :) I don't think any of us (except from Apple) knows what's exactly going on in there. ;) Sure we do!

Re: Getting the network Machine Icon

2009-01-16 Thread Sandro Noel
sorry I typed it to quickly. [computer bonjour name].[_device-info._tcp].[domain] but I get error -72004 when i try it. :( witch is an invalid parameter. I've searched the internet for _device-info. and apparently i'm not the only one asking about this feature, but no one seems to be

Re: Protocol + Delegate = conflict types

2009-01-16 Thread Quincey Morris
On Jan 16, 2009, at 00:38, Christian Giordano wrote: // RemoteLoader.h @protocol RemoteLoaderDelegate -(void) onLoadingFail:(RemoteLoader *)loader; -(void) onLoadingFinish:(RemoteLoader *)loader; -(void) onLoadingProgress:(RemoteLoader *)loader; @end @interface RemoteLoader : NSObject {

Re: Dealing with exceptions in a drawing stack

2009-01-16 Thread kyle . sluder
What are you doing that could throw an exception? After all, exceptions are used to indicate programmer error, and are expensive to throw. Something tells me that you shouldn't be worrying about exceptions in your drawing code to begin with. --Kyle Sluder

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Sherm Pendley
On Jan 16, 2009, at 3:27 AM, Jens Bauer wrote: :) I don't think any of us (except from Apple) knows what's exactly going on in there. ;) Um, at least one of the folks you're arguing with (not me) *is* from Apple. sherm-- ___ Cocoa-dev mailing

Re: Protocol + Delegate = conflict types

2009-01-16 Thread Christian Giordano
Yep, that made the trick! Thanks a lot, chr On Fri, Jan 16, 2009 at 9:07 AM, Quincey Morris quinceymor...@earthlink.net wrote: On Jan 16, 2009, at 00:38, Christian Giordano wrote: // RemoteLoader.h @protocol RemoteLoaderDelegate -(void) onLoadingFail:(RemoteLoader *)loader; -(void)

Re: Dealing with exceptions in a drawing stack

2009-01-16 Thread matt . gough
On 16 Jan 2009, at 10:33, kyle.slu...@gmail.com wrote: What are you doing that could throw an exception? After all, exceptions are used to indicate programmer error, and are expensive to throw. Something tells me that you shouldn't be worrying about exceptions in your drawing code to begin

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Jens Bauer
Hi Jean-Daniel, On Jan 16, 2009, at 09:32, Jean-Daniel Dupas wrote: You don't want to understand. I'm sorry, if it appears to be like I do not want to understand. I've been working all night on this, and I'm quite sleepy right now. My results after changing to plain C are much better. My

Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers

2009-01-16 Thread Adam Strzelecki
Gary, First of all, thank you for your response. You will find my replies below. I just want to stress the fact that this problem is not particular for Polish users but ALL users using 3rd party Spell Checkers in Mac OS X, so all CocoaSpell users, so Universe minus countries that have

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Jean-Daniel Dupas
Le 16 janv. 09 à 11:19, Jens Bauer a écrit : Hi Jean-Daniel, On Jan 16, 2009, at 09:32, Jean-Daniel Dupas wrote: You don't want to understand. I'm sorry, if it appears to be like I do not want to understand. I've been working all night on this, and I'm quite sleepy right now. My results

NSTableView with complex cells ?

2009-01-16 Thread Guillaume Laurent
Hi, I'm currently toying with the idea of writing a very basic music sequencer. The main window would, like all sequencers, display a list of music tracks (e.g. Garage Band's main window). Apparently, an NSTableView with two columns (one for the track's various parameters and the other

Long load time of managed object context

2009-01-16 Thread Matteo Manferdini
Hi everyone, I'm testing performance in my application, to see how it behaves with a big load of data inside of it. My application is core data based and uses array controllers in entity mode to fetch data. What I discovered is that my app fetched all the managed objects present in core data, so

Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers

2009-01-16 Thread Sjur Moshagen
Hello, Den 16. jan. 2009 kl. 12.40 skrev Adam Strzelecki: Gary, First of all, thank you for your response. You will find my replies below. I just want to stress the fact that this problem is not particular for Polish users but ALL users using 3rd party Spell Checkers in Mac OS X, so all

Smart Folders and NSOpenPanel

2009-01-16 Thread Mitchell Livingston
I use an NSOpenPanel to allow users to choose a folder to be used later. Is there a way so that they can only chose folders, as opposed to smart folders? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

RE: Report writer for Cocoa?

2009-01-16 Thread Jon C. Munson II
Thanks Gary! I've been a DB developer for many years, albeit on the PC side. Report writing was usually part of the tools, or, something easily found elsewhere in the PC world. Not so easily found on the Mac side though, hence my original question. I know that writing reports is a total *,

Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Rick Hoge
I'm still trying to get my head around how to achieve a particular outline view display by binding an NSTreeController to Core Data entities. I have some test apps running in which, by binding my tree controller to a root entity, I can get a nice outline view showing a hierarchy of

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Volker in Lists
Hi, why don't you have an abstract class that holds the children/parent relationships and make different subclasses for different data types that all inherit from your abstract class. As far as I understand your problem, that should solve it. I have a similar solution working well for

Re: File association

2009-01-16 Thread Sean McBride
On 1/16/09 6:01 PM, Mahaboob said: I noticed that the problem is only with the prp extension. When I'm replacing it with another extensions it is working fine. But, I need the prp extension. Could it be that you have another application that also claims the .prp extension? Mac OS does not deal

RE: NSTableView with complex cells ?

2009-01-16 Thread Fedor Larin
Take a look at SubviewTableViewTester or SubviewTableViewRuleEditor -Original Message- @lists.apple.com] On Behalf Of Guillaume Laurent Sent: Friday, January 16, 2009 2:37 PM To: Cocoa-dev List Subject: NSTableView with complex cells ? Apparently, an NSTableView with two columns

Re: NSTableView with complex cells ?

2009-01-16 Thread j o a r
On Jan 16, 2009, at 3:37 AM, Guillaume Laurent wrote: I'm currently toying with the idea of writing a very basic music sequencer. The main window would, like all sequencers, display a list of music tracks (e.g. Garage Band's main window). Apparently, an NSTableView with two columns (one

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Michael Ash
On Fri, Jan 16, 2009 at 3:27 AM, Jens Bauer jensba...@christian.net wrote: Hi Greg, On Jan 16, 2009, at 08:39, Greg Titus wrote: The point of what people are trying to tell you is that the result you are getting (3ms per empty Objective-C call) is approximately 500,000 times longer than the

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Rick Hoge
Thanks Volker, why don't you have an abstract class that holds the children/parent relationships and make different subclasses for different data types that all inherit from your abstract class. As far as I understand your problem, that should solve it. I have a similar solution working

Re: Smart Folders and NSOpenPanel

2009-01-16 Thread Corbin Dunn
On Jan 16, 2009, at 5:09 AM, Mitchell Livingston wrote: I use an NSOpenPanel to allow users to choose a folder to be used later. Is there a way so that they can only chose folders, as opposed to smart folders? Do you mean you have it setup to choose only folders, and it is allowing one

NSMutableArray comparator; sorting on insert

2009-01-16 Thread David Harper
Hello, I have written a comparator that returns an NSComparisonResult based on the comparison of two objects as required for     [(NSMutableArray *)someArray sortUsingSelector:@selector(theSelector:)] Now, I want this array to remain sorted after each insert.  For now I am inserting, then

Re: NSMutableArray comparator; sorting on insert

2009-01-16 Thread Matt Gough
On 16 Jan 2009, at 17:27, David Harper wrote: Hello, I have written a comparator that returns an NSComparisonResult based on the comparison of two objects as required for [(NSMutableArray *)someArray sortUsingSelector:@selector(theSelector:)] Now, I want this array to remain

Re: NSTableView with complex cells ?

2009-01-16 Thread Guillaume Laurent
On Jan 16, 2009, at 16:38 , j o a r wrote: For creating custom complex cells, see: http://developer.apple.com/samplecode/PhotoSearch/index.html An alternative to using cells in a table view might be to use views in a NSCollectionView:

Re: NSMutableArray comparator; sorting on insert

2009-01-16 Thread Bill Bumgarner
On Jan 16, 2009, at 8:27 AM, David Harper wrote: I have written a comparator that returns an NSComparisonResult based on the comparison of two objects as required for [(NSMutableArray *)someArray sortUsingSelector:@selector(theSelector:)] Now, I want this array to remain sorted after

Re: Report writer for Cocoa?

2009-01-16 Thread Robert Claeson
On 16 Jan 2009, at 14:09, Jon C. Munson II wrote: I've been a DB developer for many years, albeit on the PC side. Report writing was usually part of the tools, or, something easily found elsewhere in the PC world. Not so easily found on the Mac side though, hence my original question.

Re: Cocoa-dev Digest, Vol 6, Issue 86

2009-01-16 Thread Nick Zitzmann
On Jan 15, 2009, at 10:19 PM, Tobias Zimmerman wrote: How does the OS determine what to allocate for the VSIZE. You'll get a better answer on the darwin-dev mailing list, but basically, the VSIZE is the total amount of VM address space allocated, which includes shared pages (typically

Re: NSMutableArray comparator; sorting on insert

2009-01-16 Thread Greg Titus
On Jan 16, 2009, at 8:27 AM, David Harper wrote: Hello, I have written a comparator that returns an NSComparisonResult based on the comparison of two objects as required for [(NSMutableArray *)someArray sortUsingSelector:@selector(theSelector:)] Now, I want this array to remain

Re: NSMutableArray comparator; sorting on insert

2009-01-16 Thread Dave DeLong
An alternative (though one that might be slightly less flexible than a regular NSArray) is to use a datastructure that automatically sorts on insert. A guy in our Cocoaheads group has created the CHDatastructures framework (FOSS), which has all sorts of data structures not available in

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Shawn Erickson
On Fri, Jan 16, 2009 at 8:00 AM, Michael Ash michael@gmail.com wrote: To repeat: something else is going on. If I had to guess (an we do since the OP didn't post any actionable information) the following possibilities come to mind... 1) logic bug in the code he replaced 2) memory

Re: Report writer for Cocoa?

2009-01-16 Thread Scott Ribe
This is something I've looked into multiple times. There is a package, that I haven't had time to evaluate, and whose info I can't find right now, that might be what you want. I'll try to find the info and forward it. There's also the possibility of wrapping up some of the cross-platform

Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers

2009-01-16 Thread Gary L. Wade
Then the best thing for you and anyone else experiencing the problem to do is to write a bug and reference Adam's bug(s). I'm not privy to such prioritizations, but Apple does take greater stock in bugs when they are reported by more than one person. Now, I don't think they'd respond faster if

Re: NSOutlineView, tracking in a custom NSTextFieldCell, ShiftCmd Keys

2009-01-16 Thread Eric Gorr
Unfortunately, this does not appear to be a working solution quite yet. I have overridden the mouseDown method in my NSOutlineView subclass to be: - (void)mouseDown:(NSEvent *)theEvent { [super mouseDown:theEvent]; NSPoint eventLocation = [theEvent locationInWindow];

Re: NSMutableArray comparator; sorting on insert

2009-01-16 Thread Clark Cox
On Fri, Jan 16, 2009 at 8:27 AM, David Harper dave.har...@rogers.com wrote: Hello, I have written a comparator that returns an NSComparisonResult based on the comparison of two objects as required for [(NSMutableArray *)someArray sortUsingSelector:@selector(theSelector:)] Now, I want

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Quincey Morris
On Jan 16, 2009, at 06:38, Rick Hoge wrote: I tried something like the code shown below in a custom Project class, for the project entity: -(NSMutableSet*)children { return [NSMutableSet setWithObjects: [self mutableSetValueForKey:@targets], [self

Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?

2009-01-16 Thread Matt Long
Because you can't. These are the only properties you can animate: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html -Matt On Jan 16, 2009, at 10:46 AM, Adam Venturella wrote: Basically, I was thinking: Hey, why can't I use CABasicAnimation

How to manage a separate data file while saving an NSPersistentDocument or during schema migration

2009-01-16 Thread Barry Wark
Following the advice in http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdPerformance.html#//apple_ref/doc/uid/TP40003468-SW5 regarding storage of BLOBs, I've chosen to store binary data for my NSPersistenDocument-based app (Leopard-only, if that makes a difference) in

Re: Report writer for Cocoa?

2009-01-16 Thread P Teeson
On 16-Jan-09, at 11:48 AM, Robert Claeson wrote: On 16 Jan 2009, at 14:09, Jon C. Munson II wrote: I've been a DB developer for many years, albeit on the PC side. Report writing was usually part of the tools, or, something easily found elsewhere in the PC world. Not so easily found on the

Re: NSMutableArray comparator; sorting on insert

2009-01-16 Thread Michael Ash
On Fri, Jan 16, 2009 at 11:27 AM, David Harper dave.har...@rogers.com wrote: Hello, I have written a comparator that returns an NSComparisonResult based on the comparison of two objects as required for [(NSMutableArray *)someArray sortUsingSelector:@selector(theSelector:)] Now, I want

Re: Report writer for Cocoa?

2009-01-16 Thread Robert Claeson
On 16 Jan 2009, at 18:03, P Teeson wrote: On 16-Jan-09, at 11:48 AM, Robert Claeson wrote: On 16 Jan 2009, at 14:09, Jon C. Munson II wrote: I've been a DB developer for many years, albeit on the PC side. Report writing was usually part of the tools, or, something easily found elsewhere

Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?

2009-01-16 Thread Adam Venturella
So something like this would be better served with an NSTimer I take it? On Fri, Jan 16, 2009 at 9:54 AM, Matt Long matt.l...@matthew-long.com wrote: Because you can't. These are the only properties you can animate:

Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?

2009-01-16 Thread Matt Long
Yes. It's what they're made for. What are you trying to do? -Matt On Jan 16, 2009, at 11:23 AM, Adam Venturella wrote: So something like this would be better served with an NSTimer I take it? On Fri, Jan 16, 2009 at 9:54 AM, Matt Long matt.l...@matthew- long.com wrote: Because you

Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?

2009-01-16 Thread Adam Venturella
Set the volume on an Audio Queue (make a fade out/fade in) So on the interval, I will call: AudioQueueSetParameter (queueObject, kAudioQueueParam_Volume, value ); Where value is 0-1 On Fri, Jan 16, 2009 at 10:34 AM, Matt Long matt.l...@matthew-long.com wrote: Yes. It's what they're made

Re: Report writer for Cocoa?

2009-01-16 Thread Scott Ribe
That's like asking for a report writer for C or C++ and their libraries. Exactly. And it's not at all an unreasonable request. And they do exist--on other platforms. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice

Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?

2009-01-16 Thread Matt Long
There are likely some Core Audio gurus around the list that can help you with that. I'm not terribly familiar with it. I know you can use QTKit to load and play back audio files. The QTMovie object has a function called - (void)setVolume:(float)volume. -Matt On Jan 16, 2009, at 11:39 AM,

Re: save screengrab on iphone

2009-01-16 Thread David Duncan
On Jan 16, 2009, at 5:10 AM, Memo Akten wrote: But it doesn't work, I guess imageWithData is expecting image data (i.e. file format), not pixel data. How can I create a UIImage from pixel data? do I need to go into coregraphics? (e.g. CGCreateImage)? Yes. -- David Duncan Apple DTS

.DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Chunk 1978
i'm manually creating a .DMG using Disk Utility... the process is that i create a template . DMG, make it look all pretty and stuff, then convert it to it's final . DMG... let's say now that the final . DMG is 20.2mb after it's been compressed/converted... oh, but i forgot to do something to a

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Nick Zitzmann
On Jan 16, 2009, at 12:19 PM, Chunk 1978 wrote: i'm assuming this has something to do with .trashes, but i don't have access to that hidden folder on the template so i can't go in and REALLY delete the original file that i want deleted... what can i do? Use Disk Utility to zero out the

Re: NSOutlineView, tracking in a custom NSTextFieldCell, ShiftCmd Keys

2009-01-16 Thread Eric Gorr
Note that for my custom cell class I have: + (BOOL)prefersTrackingUntilMouseUp { // NSCell returns NO for this by default. // If you want to have trackMouse:inRect:ofView:untilMouseUp: // always track until the mouse is up, then you MUST return YES. // Otherwise,

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Chunk 1978
excuse my ignorance... but how can i do that? On Fri, Jan 16, 2009 at 2:29 PM, Nick Zitzmann n...@chronosnet.com wrote: On Jan 16, 2009, at 12:19 PM, Chunk 1978 wrote: i'm assuming this has something to do with .trashes, but i don't have access to that hidden folder on the template so i

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Nick Zitzmann
On Jan 16, 2009, at 12:54 PM, Chunk 1978 wrote: excuse my ignorance... but how can i do that? /Applications/Utilities/Disk Utility.app - choose the mounted image - click the Erase tab - click the erase free space button - choose to zero out deleted files. When you do your conversion

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Chunk 1978
i though maybe it's because i recreated the .DMG without erasing anything to keep it down in size... so then made another one, deleted stuff, put new stuff on the .dmg and now i have the erase tab... but the Erase Free Space is grayed out... On Fri, Jan 16, 2009 at 3:14 PM, Chunk 1978

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Chunk 1978
oh... nevermind... sorry, i'm dumb... i was trying to erase free space on the .DMG and now the mounted volume... got it now... and thanks for your help :) On Fri, Jan 16, 2009 at 3:18 PM, Chunk 1978 chunk1...@gmail.com wrote: i though maybe it's because i recreated the .DMG without erasing

Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?

2009-01-16 Thread Kyle Sluder
On Fri, Jan 16, 2009 at 1:39 PM, Adam Venturella aventure...@gmail.com wrote: Set the volume on an Audio Queue (make a fade out/fade in) Are you sure you want to tie automation of an audio queue property to a timeline other than the one the audio queue follows? Since audio queues have a

Re: CABasicAnimation : Can I run a CABasicAnimation and get it's updated values on it's progress?

2009-01-16 Thread Adam Venturella
AudioQueueTimelineRef does not seem like it would let me make calls against it, so much as receive notifications from it. Do I have the wrong timeline or am I misunderstanding AudioQueueTimelineRef or am I completely missing the timeline you are talking about? On Fri, Jan 16, 2009 at 12:56 PM,

modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Alexander Reichstadt
Hi, I have a phenomenon I am exploiting but unless I know for sure why it works must stop to use. The objective is to make sure that while the mousebuttons is being pressed no other modifier key is pressed, if anything is pressed the whole method return. Testing for 256 seems to work,

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Dave DeLong
My understanding is that the modifierFlag 256 means that no other modifiers are pressed. I haven't found it in the docs anywhere, but I believe that you can count on 256 meaning no flags. Every machine I've tested this on (I've done a bunch of CGEvent stuff recently) seems to agree.

Vvidget Code

2009-01-16 Thread Jay Kickliter
Does anyone have opinions of Vvidget Code for adding graphing to a Cocoa app? There's no option to try first, and there's very little info in the internet about it. I don't need any of the server functions. I just need to graph data coming in over a serial line in the time domain. I tried

how to archive NSNetService?

2009-01-16 Thread Allyn Bauer
Hello all, I'm writing a fairly simple server - client app. The server publishes a network name using Bonjour and clients get a list of names. They choose one (for now). After this choice, I would like the selection to somehow be saved using NSUserDefaults. I'm assuming the easiest way to do this

mergeChangesFromContextDidSaveNotification effects

2009-01-16 Thread Nathan Vander Wilt
My application imports into an NSManagedObjectContext created on a background thread. As the last stage of this import, I save the background context to the persistent store. All my UI code uses a managed object context on the main thread, and expects to be notified via

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Michael Ash
On Fri, Jan 16, 2009 at 4:08 PM, Alexander Reichstadt l...@mac.com wrote: Hi, I have a phenomenon I am exploiting but unless I know for sure why it works must stop to use. The objective is to make sure that while the mousebuttons is being pressed no other modifier key is pressed, if anything

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Michael Ash
On Fri, Jan 16, 2009 at 2:19 PM, Chunk 1978 chunk1...@gmail.com wrote: i'm manually creating a .DMG using Disk Utility... the process is that i create a template . DMG, make it look all pretty and stuff, then convert it to it's final . DMG... let's say now that the final . DMG is 20.2mb after

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Alexander Reichstadt
Thanks Dave, if someone still has a reference or headerfile or can point me to something from which I can logically deduce that this will hold true, it would help a lot. On 16.01.2009, at 22:15, Dave DeLong wrote: My understanding is that the modifierFlag 256 means that no other modifiers

Re: NSOutlineView, tracking in a custom NSTextFieldCell, ShiftCmd Keys

2009-01-16 Thread Corbin Dunn
On Jan 16, 2009, at 11:34 AM, Eric Gorr wrote: Note that for my custom cell class I have: + (BOOL)prefersTrackingUntilMouseUp { // NSCell returns NO for this by default. // If you want to have trackMouse:inRect:ofView:untilMouseUp: // always track until the mouse is

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Shawn Erickson
On Fri, Jan 16, 2009 at 1:08 PM, Alexander Reichstadt l...@mac.com wrote: Hi, I have a phenomenon I am exploiting but unless I know for sure why it works must stop to use. The objective is to make sure that while the mousebuttons is being pressed no other modifier key is pressed, if anything

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Justin Carlson
Sorry if I come across as the devil's advocate on this one - I think there should be another voice stating that objc use can slow a program. Compared to C or C++, Objective C is a poor choice for performance critical code. Within performance critical zones, I will only use objc objects

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Shawn Erickson
On Fri, Jan 16, 2009 at 1:15 PM, Dave DeLong davedel...@me.com wrote: My understanding is that the modifierFlag 256 means that no other modifiers are pressed. I haven't found it in the docs anywhere, but I believe that you can count on 256 meaning no flags. Every machine I've tested this on

Fwd: Report writer for Cocoa?

2009-01-16 Thread ajb . lists
Did you search the archives? There is a package that is much closer to what you are asking for then the suggestions so far. I've mentioned it before, but happy to do so again: http://reportwell.com/main.php?siteName=DrawWellTechlang=usname=home The reporting engine is called ReportWell,

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Shawn Erickson
On Fri, Jan 16, 2009 at 2:26 PM, Justin Carlson carrierandopera...@yahoo.co.uk wrote: Sorry if I come across as the devil's advocate on this one - I think there should be another voice stating that objc use can slow a program. Note no one that responded to Jens is stating that the Objective-C

Re: how to archive NSNetService?

2009-01-16 Thread Chris Parker
Hi Allyn, On 16 Jan 2009, at 2:00 PM, Allyn Bauer wrote: I'm writing a fairly simple server - client app. The server publishes a network name using Bonjour and clients get a list of names. They choose one (for now). After this choice, I would like the selection to somehow be saved using

Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration

2009-01-16 Thread Quincey Morris
On Jan 16, 2009, at 10:00, Barry Wark wrote: I would like to encapsulate the management of this external file in the model-related classes since I will need the same functionality during schema migration. Thus managing the external data file in my NSPersistentDocument's subclass seems wrong.

Migration with abstract entities

2009-01-16 Thread Samuel Strupp
Hi, does anybody know, how to migrate an object model with abstract entities correctly? The compiler throws errors for the mapping model can't auto generate value expression with nil mapping name. I found no documentation about migration with abstract entities in core data under Mac OS X

NSUserDefaultsController not updating defaults via binding

2009-01-16 Thread Luke Evans
I tried a set up where some UI (slider) bound to a property on a class, and separately this class' init programmatically set up a binding to NSUserDefaultsController sharedUserDefaultsController to initialise both the property and indirectly the slider control to which it was also bound.

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Jens Bauer
Hi Shawn, Thankyou for the detailed explanation. I've probably been too quick to jump to the conclusion, and even though it works better (I've still seen no chops), I agree that something else most likely have an impact on my application. On Jan 16, 2009, at 18:26, Shawn Erickson wrote:

Re: how to archive NSNetService?

2009-01-16 Thread A.M.
On Jan 16, 2009, at 5:00 PM, Allyn Bauer wrote: Hello all, I'm writing a fairly simple server - client app. The server publishes a network name using Bonjour and clients get a list of names. They choose one (for now). After this choice, I would like the selection to somehow be saved using

Re: Migration with abstract entities

2009-01-16 Thread Quincey Morris
On Jan 16, 2009, at 02:51, Samuel Strupp wrote: does anybody know, how to migrate an object model with abstract entities correctly? The compiler throws errors for the mapping model can't auto generate value expression with nil mapping name. I found no documentation about migration with

RE: Report writer for Cocoa?

2009-01-16 Thread Jon C. Munson II
Namaste! Thanks for that. I am in contact with them and am working on getting a working demo. I have to admit, that, at first blush, the licensing cost seems a bit steep - we're still considering it despite. It does look promising though. Peace, Love, and Light,   /s/ Jon C. Munson II

Re: Report writer for Cocoa?

2009-01-16 Thread Chris Hanson
On Jan 16, 2009, at 6:09 AM, Jon C. Munson II wrote: For Chris' benefit: a report writing tool is Actually, I asked for the benefit of others on the list who may not know what report writing means when former or current Windows (or Java) developers mention it. As I've said, my

re: ObjC in time-critical parts of the code

2009-01-16 Thread Justin Carlson
Note no one that responded to Jens is stating that the Objective-C way of doing message dispatching cannot cause performance critical pathways to be hotter then desired compared to direct function calls, C++ vtable dispatching, etc. The point has been that just don't assume that is the source of

Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration

2009-01-16 Thread Barry Wark
On Fri, Jan 16, 2009 at 3:00 PM, Quincey Morris quinceymor...@earthlink.net wrote: On Jan 16, 2009, at 10:00, Barry Wark wrote: I would like to encapsulate the management of this external file in the model-related classes since I will need the same functionality during schema migration. Thus

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Steve Steinitz
Hi Rick, On 16/1/09, you wrote: The design I'm trying to achieve is analogous to the way Xcode displays a Targets group and a Bookmarks group in the same outline view. If Core Data was used for this (and I don't know if it was), it seems clear that Targets and Bookmarks would be modeled

Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration

2009-01-16 Thread Quincey Morris
On Jan 16, 2009, at 17:26, Barry Wark wrote: In fact, that's how I started. It works fine (using a separate entity for the data), and performance was fine. Unfortunately, the backup system at the deployment site backs up entire changed files (rather than binary diffs), so the continuous changes

string bounding rect methods

2009-01-16 Thread James Walker
The documentation for -[NSString boundingRectWithSize:options:attributes:] simply describes the size parameter as the size of the rectangle to draw in. However, the documentation for the related drawing method, -[NSString drawWithRect:options:attributes:] says that you can specify 0.0 for the

Function for Retrieving icon from bundle's.

2009-01-16 Thread Sandro Noel
Greetings. I have now completed my quest for the Machine model, :) Yé! i'm faced yet with another problem, retriving the icon from a bundle. /System/Library/CoreServices/CoreTypes.bundle I've tried. NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFileType:modelName]; But that just

Re: Vvidget Code

2009-01-16 Thread Robert Douglas
I don't follow what you mean about not making a permanent application. I had a look at Vvidget and SM2DGraph last year but I gave up at the same point as you did. It looked very powerful, but in the end I felt the DataGraph framework (http://www.visualdatatools.com/DataGraph/index.html )

Re: string bounding rect methods

2009-01-16 Thread Aki Inoue
Yes, rendering and measuring methods behave the same. Please file a doc enhancement request. Thanks, Aki On 2009/01/16, at 19:11, James Walker wrote: The documentation for -[NSString boundingRectWithSize:options:attributes:] simply describes the size parameter as the size of the

Re: ObjC in time-critical parts of the code

2009-01-16 Thread Michael Ash
On Fri, Jan 16, 2009 at 8:03 PM, Justin Carlson carrierandopera...@yahoo.co.uk wrote: Of course. Benchmarks were provided, which only cover a portion of the subject. Furthermore, vtables are not mandatory in all cases/calls. A good optimizer (or properly written class) can overcome such

clip cursor in NSView

2009-01-16 Thread Gami Ravi
Hi All, I want to clip cursor in particular rectangle. Ultimately i am looking for same function as ClipCursor on Windows OS. How can i achieve same functionality in MAC? Any help would be appreciated. Thanks Regards, Ravi Gami. --

Re: Migration with abstract entities

2009-01-16 Thread Sean McBride
Quincey Morris (quinceymor...@earthlink.net) on 2009-01-16 6:53 PM said: The bad news is that abstract entities will cause NSPersistentDocument's Save As to break, since it apparently uses a Core Data migration to implement Save As, with an auto-generated mapping model, which of course fails to

Re: clip cursor in NSView

2009-01-16 Thread Sean McBride
Gami Ravi (ravi.g...@einfochips.com) on 2009-01-17 11:54 PM said: I want to clip cursor in particular rectangle. Ultimately i am looking for same function as ClipCursor on Windows OS. How can i achieve same functionality in MAC? Any help would be appreciated. What does ClipCursor do? (You

Re: clip cursor in NSView

2009-01-16 Thread Rob Keniger
On 17/01/2009, at 2:54 PM, Gami Ravi wrote: I want to clip cursor in particular rectangle. Ultimately i am looking for same function as ClipCursor on Windows OS. How can i achieve same functionality in MAC? Please don't try. This is what MS says about ClipCursor: The ClipCursor function

Re: clip cursor in NSView

2009-01-16 Thread Gami Ravi
Hi Sean, I am sorry for mistake. Thanks for your valuable input. NSTrackingArea class is only for Mac OS 10.5 and later. What if i want to achieve same functionality in Mac OS 10.4? Please suggest. Thanks Regards, Ravi Gami. - Original Message - From: Sean McBride cwat...@cam.org

Re: clip cursor in NSView

2009-01-16 Thread Scott Anguish
On 17-Jan-09, at 12:37 AM, Gami Ravi wrote: Hi Sean, I am sorry for mistake. Thanks for your valuable input. NSTrackingArea class is only for Mac OS 10.5 and later. What if i want to achieve same functionality in Mac OS 10.4? Have a look at the View Programming Guide for Cocoa

  1   2   >