Re: QTKit Exception

2010-11-29 Thread Mark Ritchie
Hey, On 27/Nov/2010, at 7:41 PM, Francisco Garza wrote: ... unrecognized selector sent to instance 0x119fd0 ... This makes me think that you're not talking to the object that you think you are... ;-) NSZombieEnabled has been useful when tracking down similar cases in the past. Good luck! M.

Re: isTemporaryID unrecognized selector - how do I debug this?

2010-09-09 Thread Mark Ritchie
On 9/Sep/2010, at 1:27 PM, John C. Randolph wrote: This was covered in a couple of WWDC talks. Look for the sessions on debugging. And it was covered on this list last week: ;-) http://lists.apple.com/archives/cocoa-dev/2010/Sep/msg00103.html M.

Re: A/B testing

2010-09-09 Thread Mark Ritchie
Hey! On 9/Sep/2010, at 2:01 PM, Anna Billstrom wrote: Other ideas? 1) Please start a new thread instead of replying to another with a different subject... Messes up thread tracking. ;-) 2) I think that you actually want the opposite, but in case that's not the case: the Automated User

Re: Small memory leaks in Cocoa guts

2010-09-07 Thread Mark Ritchie
On 7/Sep/2010, at 7:33 AM, Vincent Habchi wrote: Okay, I'll do that asap – I am going to become specialist for these kind of things :) Yup, a repeatable case is ALWAYS a good idea! ;-) M. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Finding source of EXC_BREAKPOINT crash

2010-08-31 Thread Mark Ritchie
Hey! On 30/Aug/2010, at 6:37 PM, Greg Parker wrote: Most likely the static libraries or some other part of your code was not built with deployment target 10.5. Double-check your project settings and build logs. I've not done this for a while however I think it was the DYLD_PRINT_*

Re: How to change name and location of core dump files

2010-08-26 Thread Mark Ritchie
Hey! On 26/Aug/2010, at 7:29 AM, Parimal Das wrote: How i can change this core name to a more readable one, say core.myApp. Also can i change the default location of core generation?? Be careful as this is controlled system wide, not per process. ;-) And to be clear, I've not messed

Re: Another Icon Question

2010-08-24 Thread Mark Ritchie
Hey! On 24/Aug/2010, at 7:43 AM, k...@highrolls.net wrote: I added CoreServices.framework to my project since it contains LaunchServices.framework. When I tried this, I had to explicitly include LaunchServices.framework The referenced header is in LaunchServices.framework, but still not

Re: Another Icon Question

2010-08-24 Thread Mark Ritchie
On 24/Aug/2010, at 10:04 AM, Jean-Daniel Dupas wrote: Don't include it directly. This is a subumbrella framework and should always be referenced though its parent framework. Instead use: #import CoreServices/CoreServices.h Ah, good point. ;-) Thanks! M.

Re: Embedding a system preference pane

2010-08-20 Thread Mark Ritchie
Hey! On 20/Aug/2010, at 1:44 AM, Jon Guy wrote: This is not something hacky, it is documented by Apple and is supposed to work but it's clearly not or I'm doing something wrong. A shot in the dark however... What OS version are you running and is it in 32 of 64 bit mode? There was a time

Re: Erratic Cocoa Behavior

2010-08-17 Thread Mark Ritchie
On 17/Aug/2010, at 6:52 AM, Uli Kusterer wrote: There are both NSShowAllViews and NSShowAllDrawing. They don't go in the Info.plist. They either go in your app's preferences file, or you can pass them as command-line arguments (e.g. double-click your app in the Executables group in Xcode

Re: Erratic Cocoa Behavior

2010-08-17 Thread Mark Ritchie
Hey Koko! On 17/Aug/2010, at 11:04 AM, k...@highrolls.net wrote: Thanks. I -reloadData on -draggingExited and -draggingEnded to no avail. Given the number of suggests which have been put forth to no avail, my suggestion is to distill your problem into a sample application which show's the

Re: String Tables

2010-08-06 Thread Mark Ritchie
Hey Richard! On 6/Aug/2010, at 8:50 AM, Richard Somers wrote: It appears that literal keys would easier to translate because no cross referencing would be required. Why then are symbolic keys also used? I think it's a matter of choosing what works best for your workflow and all parties

Re: [SOLVED] Coercion exception assigning a Core Data property

2010-08-05 Thread Mark Ritchie
Hey! On 5/Aug/2010, at 4:00 PM, Rick Mann wrote: Ah! He was relating objects in different contexts. I feel like CD could've given us a more informative error code here. You should make a short example and file a bug report! ;-) That way, you and everyone else will benefit in the future! M.

Re: Drag'n Drop Mail.app message to Cocoa app

2010-08-04 Thread Mark Ritchie
Hey! On 4/Aug/2010, at 2:35 PM, John Ackert wrote: any ideas? I would think that the contents of a mail message might be something that Mail.app wants to keep for itself! ;-) I observe that TextEdit.app accepts the drop and creates a nice URL which goes back to Mail.app. The example app

Re: iOS 4: CGImageCreateWithImageProvider

2010-08-03 Thread Mark Ritchie
On 3/Aug/2010, at 7:36 AM, Fritz Anderson wrote: I've asked about this many times, and searched Google and the developer fora. I've combed my code and haven't seen any defects — and as I recall, the log occurs outside application code, so single-stepping doesn't help Silly question I know

Re: [iPhone] Data protection clarification needed.

2010-08-02 Thread Mark Ritchie
Hey! On 2/Aug/2010, at 9:02 AM, Sandro Noël wrote: ... What we want is for out application Data to still be locked when the phone is unlocked and only unlocked by the user when the user logs locally in to the application. ... I'm sure that there are several ways to encrypt data on the

Re: loading French strings being in English language

2010-08-01 Thread Mark Ritchie
Hey! On 31/Jul/2010, at 10:41 PM, cocoa learner wrote: Any example or code snippet will help here. Sure! ;-) // get the shared defaults object NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; // remove any previous setting for languages [userDefaults

Re: Get controller from nib

2010-05-18 Thread Mark Ritchie
On 18/May/2010, at 4:28 PM, James Maxwell wrote: What I'm not understanding is how to allow newly created MIDIInstrument objects to read the available/enabled ports from Central_MIDI_Controller. I know this is probably really simple, but how do I grab a reference to a controller object

Re: Get controller from nib

2010-05-18 Thread Mark Ritchie
Hey James! On 18/May/2010, at 5:00 PM, James Maxwell wrote: From the MIDIInstrument init, I can run [[NSApp delegate] midiController] and get the instance of Central_MIDI_Controller loaded in the nib. As I say, it feels a bit hackish. Though it does work, and advice is still welcome. Sure,

Re: Get controller from nib

2010-05-18 Thread Mark Ritchie
Hey James! On 18/May/2010, at 5:26 PM, James Maxwell wrote: Anyway, I do like the sound of your design... So, does the instance loaded in IB become a one-off, or does it somehow alias (for lack of a better word) all future instances? I was under the impression that the instance in IB was

Re: Get controller from nib

2010-05-18 Thread Mark Ritchie
Hey James! On 18/May/2010, at 5:42 PM, James Maxwell wrote: Okay, getting a bit deeper into this, I realize I'm still in the woods, so to speak. I'm going to have to hook up my NSTableView to set the *selected* port and channel for the MIDIInstruments, which means it's pretty much going to

Re: Posix error 24

2010-05-15 Thread Mark Ritchie
On 15/May/2010, at 7:44 AM, Ken Thomases wrote: Probably easier and more productive to use Instruments and the File Activity instrument. Far easier, no code changes needed and you get the stack traces for each file action. Definitely the way to go! ;-) M.

Re: [iPhone] File coping application

2010-04-26 Thread Mark Ritchie
Hey! On 26/Apr/2010, at 9:04 AM, Arun wrote: Is it possible to copy files form iPhone on to a Mac when iPhone is connected to USB? That depends on what kind of files! ;-) (Images for example are easily copied.) What are you trying to do? M. ___

Re: Removing quit button from dock menu

2010-02-24 Thread Mark Ritchie
On 24/Feb/2010, at 1:20 AM, yogin bhargava wrote: Thanks for your responses. The application is an installer which has to install something. And that installer should not be allowed to quit. Hi Yogin! I agree with the others who have posted... Using a standard package and the regular

Re: Removing quit button from dock menu

2010-02-23 Thread Mark Ritchie
Hi Yogin! On 22/Feb/2010, at 10:33 PM, yogin bhargava wrote: I dont want to allow the user to quit my application except from the activity monitor. Ok, I'm curious, in what circumstance would this workflow be obvious to the user of your application? I know that personally, I would be secure

Re: Removing quit button from dock menu

2010-02-22 Thread Mark Ritchie
On 21/Feb/2010, at 10:52 PM, yogin bhargava wrote: I have an application for which I have to remove quitting option. Anybody has idea how to remove it from the dock menu. What is the goal? Why would you want to do this? M. ___ Cocoa-dev mailing

Re: iPhone and OS X apps question

2010-02-11 Thread Mark Ritchie
Hey Eric! Over what timeframe did you want the iPhone app and the desktop app to be in sync? Immediately? ASAP? When iPhone is tether sync'd? Something else? Is this one iPhone app to one desktop, all with the same user? Or is this many to many with many users? Something inbetween? What

Re: How to hide dock item and application menu?

2010-01-25 Thread Mark Ritchie
On 25/Jan/2010, at 10:06 AM, Arun wrote: as my req is to provide the option to user to hide/unhide dock and menu item. Perhaps if you explained what you're trying to accomplish we could provide some direction? M. ___ Cocoa-dev mailing list

Re: Looking up a NSString constant at runtime

2010-01-04 Thread Mark Ritchie
On 4/Jan/2010, at 4:24 PM, glenn andreas wrote: CFBundle has routines for looking up both functions and data by name. It does require you figure out what framework the symbol comes from (and then get the corresponding CFBundle), but it is doable. Cool, I didn't know that CFBundle exposed

Re: unsleep the display programatically?

2009-10-19 Thread Mark Ritchie
On 18-Oct-2009, at 6:36 PM, David LeBer wrote: On 2009-10-18, at 9:30 PM, jon wrote: Hi David, that would not work, because the display does need to sleep, it would be working a long time, and at nightbut needs to let people know that it is done. i have an alarm go off, but

Re: Neophyte Question: Connecting to nib objects

2009-10-19 Thread Mark Ritchie
On 19-Oct-2009, at 8:51 AM, Phil Hystad wrote: Given that I have an object defined in the nib (aka xib), for example, an object that responds to a given view, what is the correct way for my running application (if it is in some other state, not responding to an action) to obtain a pointer

Re: unsleep the display programatically?

2009-10-18 Thread Mark Ritchie
On 18-Oct-2009, at 5:11 PM, jon wrote: can you unsleep the display programatically? i haven't found a method yet for doing it? Hrm... In what situation would you want to do such a thing? And what if the user has set security to require a password after being in sleep? M.

Re: Difference between SEL and const char* when sending a message?

2009-04-08 Thread Mark Ritchie
. Regards, Mark __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Invoke a method

2009-04-07 Thread Mark Ritchie
at a higher level the plan you're trying to implement? Best, Mark. __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Check box to indicate more than 2 states

2009-04-07 Thread Mark Ritchie
On 7-Apr-09, at 1:43 PM, Arun wrote: Is it possible to use the same control to show more that 2 states. Like Enable/Disable/Modified. Sounds to me like radio buttons might better convey your intentions to the user? M. __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting

Re: Toll-free bridge type at runtime

2009-04-02 Thread Mark Ritchie
this wrapped array would be different from another array. As Ali said, it would be better if you could avoid the test. Thanks! Mark __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada ___ Cocoa-dev

Re: Crash in Thread 2

2009-03-24 Thread Mark Ritchie
On 24-Mar-09, at 1:06 PM, David H. Silber wrote: Where would I look for information on what happens where? What does the crash log say? (usually recorded in ~/Library/Logs/CrashReporter) M. __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada

Re: How to debug this...

2009-03-20 Thread Mark Ritchie
0x3066fe04 -[NSCFDictionary release] + 2 Do you know which version of Mac OS X was running to produce this backtrace? I built a test case and looked at what happens during CFRelease however it didn't line up to above. I'm running OSX, 10.5.6 with Xcode 3.1.2. Regards! Mark __ Mark Ritchie Cocoa

Re: Automatically replacing part of text in a text label

2009-03-16 Thread Mark Ritchie
, NSString has a bunch of options similar to this: - (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement Good luck! M. __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada

Re: Simple way to traverse 2D array?

2009-02-23 Thread Mark Ritchie
__ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators