Re: Which framework to use CGImage?

2008-11-18 Thread Jean-Nicolas Jolivet
Well, apparently it's not a framework problem since I can use: CGImageSourceRef source = CGImageSourceCreateWithData((CFDataRef)tempData, NULL); without a problem... Any other reasons why CGImageSourceCreateWithURL would yield an error code -15??? On 18-Nov-08, at 3:18 AM, Jean-Nicolas

Re: Which framework to use CGImage?

2008-11-18 Thread Roland King
one possible .. |kCFURLImproperArgumentsError is defined as -15. Is the imgUrl ok? Can you send a Null dictionary to that function or should you send an empty one? | Jean-Nicolas Jolivet wrote: Well, apparently it's not a framework problem since I can use: CGImageSourceRef source =

Re: Which framework to use CGImage?

2008-11-18 Thread Jean-Nicolas Jolivet
Wait you might be onto something... I was using [NSURL URLWithString] instead of [NSURL fileURLWithPath] On 18-Nov-08, at 3:35 AM, Roland King wrote: one possible .. |kCFURLImproperArgumentsError is defined as -15. Is the imgUrl ok? Can you send a Null dictionary to that function or

Re: Which framework to use CGImage?

2008-11-18 Thread Jean-Nicolas Jolivet
Yup... that was the problem... the URL was indeed bad... Thanks for the tip! While I'm on the subject... I'm using CGImage because I read it would actually parse more EXIF tags than using NSBitmatImageRep's valueForProperty:@NSImageEXIFData Just tested it... my initial image has like 50+

core-data crash on save.

2008-11-18 Thread John Clayton
Hi All, I've got a core-data relationship crash problem that I'd like to share, see if anyone out there has an idea of what I'm doing wrong. This is related to my recent question of knowing when an object is deleted (subject: core data - delete of object). The relationship in my graph

Re: Outlets / IBOutlet declarations (was Re: Interface Builder Wiring Objects)

2008-11-18 Thread Brian Stern
On Nov 18, 2008, at 2:12 AM, Jonathan Hess wrote: Which parts do you feel are contrary? I'm guessing it's that outlets with no setters are retained. Yes, that's the root of the whole issue. The fact is that outlets without setters that are retained aren't released by the code that

NSShadow

2008-11-18 Thread M Pulis
Folks, I have an NSControl, in IB i've set a shadow and a color (green). it has an IBOutlet and is hooked up to my controller. When my app is run, the checkbox has a lovely green shadow. Go baby go During runtime I want to change the shadow color - but am failing to do so. So, to

RE: Crash in AppKit/CoreFoundation?

2008-11-18 Thread Etienne Guérard
The __CFXNotificationSendToServer symbol in the call stack means that you have an NSNotification somewhere in your code that cause some plist serialization. This is were I would look for trashed objects. Some of your code function might not appear in a call stack for optimization reason. Also

NSTextView's -setTextContainerInset: and rightmost ruler margin

2008-11-18 Thread Keith Blount
Hi, Either there's a bug in the text system or I'm not doing something right. I'm using NSTextView's -setTextContainerInset: to set margins around my text area. However, this seems to cause a bug in the ruler whereby the tail indent ruler marker (the downward arrow on the right) gets drawn in

RE: Graceful Shutdown on an Unsupported Earlier Mac OS Version

2008-11-18 Thread Etienne Guérard
See http://homepage.mac.com/chris_campbell/blog/SystemVersionCheck-1.1.html for a discussion and a solution to this problem. EG -Original Message- While it is not my intention to support previous versions of Mac OS, I'd like my users be informed politely that the latest OS version is

Re: Opening Ports in Leopard

2008-11-18 Thread Gerriet M. Denkmann
On 18 Nov 2008, at 15:27, Stefan Werner wrote: Aren't port numbers 0-1023 privileged under Unix and therefore only to applications running as root? If you're running your application as a regular user, it can't open a listening socket on port 123. It should still be perfectly able to send

Re: Crash in AppKit/CoreFoundation?

2008-11-18 Thread Mike Abdullah
A crash in _CFDictionaryGrow suggests to me that your app has used up all the memory available to it. Does anything in your user's console log indicate this? If you're doing batch operations on a background thread, are you sure it's managing its memory properly? On 18 Nov 2008, at 03:30,

Re: Opening Ports in Leopard

2008-11-18 Thread M Pulis
Stabbing in the dark here... Has the some message format now changed with Leopard? Any unused fields that must now be zero? Any subtle changes to the protocol? More things to try: You can file a bug report with Apple. As a last resort - buy an apple DTS incident. $200 and you have

Take picture with iSight?

2008-11-18 Thread Tim Andersson
Hi there. I'm looking for a way to take a picture with an iSight or any external camera in my Cocoa-application. I've been googling and searching the archives without success. I've also looked at the QTCaptureWidget and QTRecorder samplecode to see if there's anything I could use, but they

Re: Take picture with iSight?

2008-11-18 Thread Graham Cox
If you don't need to support pre-Leopard, check out IKPictureTaker cheers, Graham On 18 Nov 2008, at 11:25 pm, Tim Andersson wrote: Hi there. I'm looking for a way to take a picture with an iSight or any external camera in my Cocoa-application. I've been googling and searching the

Re: Take picture with iSight?

2008-11-18 Thread Tim Andersson
Sorry, forgot to say that I have looked at the IKPictureTaker and it isn't really what I'm looking for. I don't want the user to be able to choose a picture or anything like that, I just want to take a picture when the user clicks a button for example or when I call a method in my code.

Re: core data - delete of object.

2008-11-18 Thread John Clayton
I guess processPendingChanges is only called if there is an undoManager? Correct? I don't have one - I disabled it intentionally. I've tried that notification, its only fired on save of the context. Thanks -- John Clayton Skype: johncclayton On 18/11/2008, at 1:22 PM, Ashley Clark wrote:

Re: Take picture with iSight?

2008-11-18 Thread M Pulis
You've looked at QTKit.h with its QTCapture classes? Gary On Nov 18, 2008, at 5:38 AM, Tim Andersson wrote: Sorry, forgot to say that I have looked at the IKPictureTaker and it isn't really what I'm looking for. I don't want the user to be able to choose a picture or anything like

Re: Take picture with iSight?

2008-11-18 Thread Graham Cox
On 18 Nov 2008, at 11:38 pm, Tim Andersson wrote: Sorry, forgot to say that I have looked at the IKPictureTaker and it isn't really what I'm looking for. I don't want the user to be able to choose a picture or anything like that, I just want to take a picture when the user clicks a

Re: Take picture with iSight?

2008-11-18 Thread Tim Andersson
Yay, thanks to you I found a tutorial showing me how to do what Graham mentioned. :) I didn't know how to look inside QTKit.h, so I googled QTKit.h and I found the tutorial -

Re: Take picture with iSight?

2008-11-18 Thread M Pulis
I use the delegate: -(CIImage *) view:(QTCaptureView *)view willDisplayImage : (CIImage *) image to grab a frame and bypass the basics. I found it straightforward to transform and filter the frame as needed. Found the technique in Apple sample code - forget which one now... core image,

Re: Outlets / IBOutlet declarations (was Re: Interface Builder Wiring Objects)

2008-11-18 Thread Erik Buck
If you write correct accessors for all outlets, then the retain/release memory management is entirely handled in one method.  the -set retains the new value and releases the old value.   Any confusion regarding memory management for IB outlets seems to stem from failure to write the accessors

Re: Regex

2008-11-18 Thread Dave DeLong
To get it to compile you need to do two things: 1. Add the Other Linker Flag -licucore to your project build settings 2. Import the RKL header into whatever files you'll use it in (alternatively, you can import it into your .pch file so that it will get included into everything

Re: Opening Ports in Leopard

2008-11-18 Thread Michael Ash
On Tue, Nov 18, 2008 at 4:49 AM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: On 18 Nov 2008, at 15:27, Stefan Werner wrote: Aren't port numbers 0-1023 privileged under Unix and therefore only to applications running as root? If you're running your application as a regular user, it can't

Re: Graceful Shutdown on an Unsupported Earlier Mac OS Version

2008-11-18 Thread Nick Zitzmann
On Nov 18, 2008, at 2:37 AM, Oleg Krupnov wrote: 1) How do I query the current OS version in Cocoa? Gestalt(). See Gestalt.h for details. 2) Will my code even have the opportunity to check the OS version, or an error will occur on the stage of loading and reported by the OS loader, before

Re: NSDateFormatter strangeness

2008-11-18 Thread Kyle Sluder
On Mon, Nov 17, 2008 at 8:23 PM, Greg Hoover [EMAIL PROTECTED] wrote: I am using NSDateFormatter. The code snippet included shows this. No, you're not. Your third argument to NSLog is an NSDate object. NSLog will call -description on it to get a textual representation. --Kyle Sluder

Re: NSTextView's -setTextContainerInset: and rightmost ruler margin

2008-11-18 Thread Ross Carter
On Nov 18, 2008, at 5:05 AM, Keith Blount wrote: Either there's a bug in the text system or I'm not doing something right. I'm using NSTextView's -setTextContainerInset: to set margins around my text area. However, this seems to cause a bug in the ruler whereby the tail indent ruler

Re: Fetch value from field editor during editing?

2008-11-18 Thread Russ
Yeah, I had one of these. Problem was, I needed two. I had the one set up using Target/Action instead of delegate. With the two separate flavors, much cheerier now. Thanks. - Original Message From: Wayne Packard [EMAIL PROTECTED] To: Russ [EMAIL PROTECTED] Cc:

Re: NSDateFormatter strangeness

2008-11-18 Thread Greg Hoover
Ok, I buy that, but then what's the problem here: NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat: @dd/MM/]; NSString *str = @3/10/2008; NSLog(@[EMAIL PROTECTED]@\r%@, str, [formatter dateFromString: str], [formatter

Re: CMGetImageSpace() replacement?

2008-11-18 Thread David Duncan
On Nov 17, 2008, at 4:28 PM, Randall Meadows wrote: The code I'm working on uses CMGetImageSpace(), which is deprecated in 10.5, but the docs don't suggest anything to use in its stead. From the looks of the docs, it seems that the replacement is to use ImageIO and Core Graphics to load

Re: NSDateFormatter strangeness

2008-11-18 Thread Simon Wolf
On 18 Nov 2008, at 17:06, Greg Hoover wrote: Ok, I buy that, but then what's the problem here: NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat: @dd/MM/]; NSString *str = @3/10/2008; NSLog(@[EMAIL PROTECTED]@\r%@, str,

Re: NSDateFormatter strangeness

2008-11-18 Thread Greg Hoover
Wow! That totally fixed it. Thank you. Wow do I feel dumb! Greg On Nov 18, 2008, at 9:28 AM, Simon Wolf wrote: On 18 Nov 2008, at 17:06, Greg Hoover wrote: Ok, I buy that, but then what's the problem here: NSDateFormatter *formatter = [[NSDateFormatter alloc] init];

Re: Outlets / IBOutlet declarations (was Re: Interface Builder Wiring Objects)

2008-11-18 Thread Brian Stern
On Nov 18, 2008, at 9:15 AM, Erik Buck wrote: If you write correct accessors for all outlets, then the retain/ release memory management is entirely handled in one method. the - set retains the new value and releases the old value. Any confusion regarding memory management for IB outlets

Re: Regex

2008-11-18 Thread Mr. Gecko
Here is what I am trying now. NSString *recived = [[NSString alloc] initWithData:receivedData encoding:NSUTF8StringEncoding]; RKRegex *regex = [RKRegex regexWithRegexString:@/a\\s[^]*href=(\??) ([^\ ]*?)\\1[^]*.*\\/a/siU options:RKCompileNoOptions]; RKEnumerator *recivedE = [recived

Re: core-data crash on save.

2008-11-18 Thread Quincey Morris
On Nov 18, 2008, at 00:27, John Clayton wrote: In my program I have a check-box that switches a particular effect on/off, an opacity fade in this case. Switching the effect off will delete the effect from the core-data graph in the following manner: A - remove the effect object from the

about IMKMouseHandling Protocol in IMKit

2008-11-18 Thread BirdSong
Hi folks,I am writing a chinese IME for mac with IMK framework now. I use my?input controller which inherited from IMKInputController and draw the?candidates window myself (so I don't use the default candidates window).My question is: I want to know the current client mouse events(such as?the

Core Data Fetch in Different Context

2008-11-18 Thread Des Cullen
Hi, I am trying to prevent duplicates being created in a core data app and am using a fetch to search for duplicates but excluding the managedObject itself. I am using the following predicate; NSPredicate *predicate = [NSPredicate predicateWithFormat:@(descript = %@) AND (self !=

Code-sign Services HotKey Modifications

2008-11-18 Thread Xavier Snark
Greetings, I am new to cocoa, the list and I apologize if I am posting something previously beaten or that is not appropriate (please let me know!). I have a pure cocoa application that relies on Services as its primary method of invocation. Of course it can be opened normally, but that

Re: Outlets / IBOutlet declarations (was Re: Interface Builder Wiring Objects)

2008-11-18 Thread Greg Titus
Brian, The way to handle this is to _not_ respond to memory warnings in subclasses (at least not for the purposes of view outlet handling - there may be other non-view memory you want to free up in response to a memory warning). Instead, implement -setView: in your UIViewController

How to get notification of rerun application

2008-11-18 Thread Macarov Anatoli
How to get notification of  rerun application that is namely being started from the icon? Because the program is automatically started upon OS login. Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту!

Re: Code-sign Services HotKey Modifications

2008-11-18 Thread Randall Meadows
On Nov 18, 2008, at 7:44 AM, Xavier Snark wrote: I have a pure cocoa application that relies on Services as its primary method of invocation. Of course it can be opened normally, but that decreases its usability by design. I had already started down the path to allowing the user to change

Re: release and reference counting query

2008-11-18 Thread Marc Stibane
-- sorry, repost (went to the wrong list yesterday) Am 07.11.2008 um 13:17 schrieb Roland King: On Nov 7, 2008, at 7:59 PM, Calum Robertson wrote: Below is a snippet of code from the Creating an iPhone Application document from the iPhone DevCenter. -

Re: Regex

2008-11-18 Thread Mr. Gecko
so I tried that and it worked but it doesn't seem to do what I need. I am needing to do the same thing as preg_match_all in php so I can find all links and have it in an NSArray to go through and add to a database. Any ideas on how I can do that? On Nov 18, 2008, at 11:59 AM, [EMAIL

Re: Code-sign Services HotKey Modifications

2008-11-18 Thread I. Savant
On Tue, Nov 18, 2008 at 9:44 AM, Xavier Snark [EMAIL PROTECTED] wrote: Can any one point me in the right direction for this? You should *not* be storing user-modifiable data inside the app/plug-in bundle. Non-administrative users do not have permission to change this. You should make use of

Re: Outlets / IBOutlet declarations (was Re: Interface Builder Wiring Objects)

2008-11-18 Thread Brian Stern
Thanks Greg, That does work and has no bad side effects. I can leave in the retain properties and release the outlets in the view controller's dealloc method. Thanks, Brian On Nov 18, 2008, at 1:19 PM, Greg Titus wrote: Brian, The way to handle this is to _not_ respond to memory

Re: release and reference counting query

2008-11-18 Thread Marc Stibane
Am 17.11.2008 um 19:34 schrieb j o a r: On Nov 17, 2008, at 10:02 AM, Marc Stibane wrote: So why the local var? 3 lines of code instead of 1... Isn't a main goal of Cocoa to write *less* code? The main goal for most programmers is not to write less code, it's to write maintainable code [*].

Re: release and reference counting query

2008-11-18 Thread Andy Lee
On Nov 18, 2008, at 1:33 PM, Marc Stibane wrote: Am 07.11.2008 um 13:17 schrieb Roland King: On Nov 7, 2008, at 7:59 PM, Calum Robertson wrote: Below is a snippet of code from the Creating an iPhone Application document from the iPhone DevCenter. -

Re: Regex

2008-11-18 Thread [EMAIL PROTECTED]
NSPredicate can handle ICU standard regex matches. More info in the NSPredicate docs. The following snippet validates a UUID. /* is UUID see http://www.stiefels.net/2007/01/24/regular-expressions-for-nsstring/ */ - (BOOL)isUUID { NSString *regex =

OpenGL + NSTextView/NSTextContainer?

2008-11-18 Thread Karan, Cem (Civ, ARL/CISD)
I've recently been (mentally) exploring some potential user interfaces, and thought up one that I'd like to implement if it is possible. The problem is that I don't know much about OpenGL, or NSTextView/NSTextContainer, so I need to bounce my questions off of people with knowledge/experience.

Re: How to get notification of rerun application

2008-11-18 Thread Kyle Sluder
On Tue, Nov 18, 2008 at 7:59 AM, Macarov Anatoli [EMAIL PROTECTED] wrote: How to get notification of rerun application that is namely being started from the icon? Because the program is automatically started upon OS login. The OS will not launch an application when it's already open. Instead

Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-18 Thread Rua Haszard Morris
On Nov 18, 2008, at 1:00 pm, 11(November)/18/08, Douglas Davidson wrote: On Nov 17, 2008, at 3:50 PM, Rua Haszard Morris wrote: I have found that NSSuperscriptAttributeName, NSUnderlineStyleAttributeName, and NSObliquenessAttributeName (those are the attributes that I have tested) render

Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-18 Thread Douglas Davidson
On Nov 18, 2008, at 11:53 AM, Rua Haszard Morris wrote: I was ensuring that I am _not_ drawing in a flipped context... (!) now, as you suggest I tried flipping the custom view (override isFlipped) that the attributed string is drawn in, and note that it works correctly! So an improved

SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-18 Thread Rua Haszard Morris
To follow up.. below I have pasted the code that draws the text (for my test app, as opposed to the more complex ways of reproducing the bug elsewhere in my code). (the full test app is attached to the radar bug) I have been consulting the Text System Overview documentation, which I

Re: OpenGL + NSTextView/NSTextContainer?

2008-11-18 Thread Erik Buck
Open GL has no built-in capability for drawing text.  Open GL provides lower level primitives like lines and curves and meshes.  Open GL also provides texture compositing.   There are some free and some open text drawing/font solutions for Open GL.  You can use the GLUT library up to a point.  

Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-18 Thread Douglas Davidson
On Nov 18, 2008, at 12:18 PM, Rua Haszard Morris wrote: To follow up.. below I have pasted the code that draws the text (for my test app, as opposed to the more complex ways of reproducing the bug elsewhere in my code). (the full test app is attached to the radar bug) I have been

Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-18 Thread Rua Haszard Morris
Thanks for the link, you are right, I had not seen that document! On Nov 19, 2008, at 9:33 am, 11(November)/19/08, Douglas Davidson wrote: On Nov 18, 2008, at 12:18 PM, Rua Haszard Morris wrote: To follow up.. below I have pasted the code that draws the text (for my test app, as opposed to

window flash

2008-11-18 Thread Alexander Cohen
Hi, I have a window controller that i'm creating dynamically in the applicationDidFinishLaunching: app delegate notification. In this window controllers windowDidLoad:, i'm adding subviews to it's content view. When i create it then call showWindow: on it, the window shows up on screen

window flash

2008-11-18 Thread Alexander Cohen
Hi, I have a window controller that i'm creating dynamically in the applicationDidFinishLaunching: app delegate notification. In this window controllers windowDidLoad:, i'm adding subviews to it's content view. When i create it then call showWindow: on it, the window shows up on screen

Potentially dumb question

2008-11-18 Thread Robert Mullen
My application is not document based but does create certain files as a byproduct and needs to be the default application for these file types as well. If they are clicked or dragged to the dock icon of my application I need to be able to display the contained information in a special

Re: core data - delete of object.

2008-11-18 Thread Ashley Clark
That's true, processPendingChanges is used by the context to implement undo functionality but there's no reason why you can't call it yourself after your delete since you've disabled the context's undo functionality. Here's an example where events is an NSArrayController: -

Re: Potentially dumb question

2008-11-18 Thread I. Savant
On Tue, Nov 18, 2008 at 4:32 PM, Robert Mullen [EMAIL PROTECTED] wrote: My application is not document based but does create certain files as a byproduct and needs to be the default application for these file types as well. If they are clicked or dragged to the dock icon of my application I

Re: core-data crash on save.

2008-11-18 Thread John Clayton
Hi there, comments embedded below... On 18/11/2008, at 7:06 PM, Quincey Morris wrote: On Nov 18, 2008, at 00:27, John Clayton wrote: In my program I have a check-box that switches a particular effect on/off, an opacity fade in this case. Switching the effect off will delete the effect

Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-18 Thread Rua Haszard Morris
What are the different options for flipping the coordinates of the destination view? I've tried doing it by scaling and translating the CGContext, but this results in problems with underlining or the character orientation (depending on whether i flip the view back before or after drawing

Re: core-data crash on save.

2008-11-18 Thread Ashley Clark
On Nov 18, 2008, at 3:53 PM, John Clayton wrote: snip So, with the extra two bits of knowledge, namely: - I have a Nullify relationship from Effect to the Layers 'effects' set/relationship - it works if I call processPendingChanges does it still 'reek' to you of something being broken?

Can 2 nib share a same custom class instance?

2008-11-18 Thread Jean-Nicolas Jolivet
This is a bit hard to explain but I'll try to keep it simple and clear The short version would be: Can two nib files share an instance of a custom class instead of both creating their separate instance... The long version: I have a custom window controller (let's call it

Re: Can 2 nib share a same custom class instance?

2008-11-18 Thread Kyle Sluder
On Tue, Nov 18, 2008 at 5:43 PM, Jean-Nicolas Jolivet [EMAIL PROTECTED] wrote: I have a custom window controller (let's call it CustomWindowController) to manage a custom window... this is contained in a separate nib file (i.e. not in my MainMenu.nib) Typically this isn't what you want to do.

Re: Can 2 nib share a same custom class instance?

2008-11-18 Thread Jean-Nicolas Jolivet
Thanks for the reply... I guess I had what you could call a brainfreeze moment... My CustomWindowController is created programatically from my AppController... therefore, when the App Controller's action is triggered by the menu item, I just call the approriate Custom Controler's

NSNumberFormatter Currency Symbol

2008-11-18 Thread Brad Gibbs
Is it possible to have a text field with a currency symbol that appears automatically? For instance, if the user types 400, $400.00 appears in the text field. I've been using IB's formatter with 10.4+ and I don't see any options that would allow for this. As it stands, if the formatter

Sharing model object implementations between Cocoa iPhone

2008-11-18 Thread Rick Mann
Hi. I'm wondering if I can have a collection of model objects in my app, which has both a desktop version and an iPhone version, and share most of that implementation. On the desktop, I'd like for them to be Core Data entities, and on the iPhone, they'd just be stored in the sqlite

Re: window flash

2008-11-18 Thread Michael Ash
On Tue, Nov 18, 2008 at 4:15 PM, Alexander Cohen [EMAIL PROTECTED] wrote: Hi, I have a window controller that i'm creating dynamically in the applicationDidFinishLaunching: app delegate notification. In this window controllers windowDidLoad:, i'm adding subviews to it's content view. When i

Re: NSArrayController and table column bindings retain/dealloc woes

2008-11-18 Thread Ken Thomases
On Nov 17, 2008, at 6:00 AM, Keith Blount wrote: Which leads me to the big difference in my project... The File's Owner in my nib file is not an NSDocument or an NSWindowController, but my own custom view controller (my app runs on Tiger and Leopard so I can't use Leopard's new

NSKVODeallocateBreak?

2008-11-18 Thread John Zorko
Hello, all ... My app is hitting this breakpoint, and I don't know what it means (and there is no stack frame in the call stack that lives in my source, so while I can make a good guess about where it's happening, i'm not 100% sure). What n00b mistake causes this breakpoint to be hit?

Re: core-data crash on save.

2008-11-18 Thread Quincey Morris
On Nov 18, 2008, at 13:53, John Clayton wrote: So, with the extra two bits of knowledge, namely: - I have a Nullify relationship from Effect to the Layers 'effects' set/relationship - it works if I call processPendingChanges does it still 'reek' to you of something being broken? I'm a bit

Re: NSKVODeallocateBreak?

2008-11-18 Thread Kyle Sluder
On Tue, Nov 18, 2008 at 6:41 PM, John Zorko [EMAIL PROTECTED] wrote: My app is hitting this breakpoint, and I don't know what it means (and there is no stack frame in the call stack that lives in my source, so while I can make a good guess about where it's happening, i'm not 100% sure). What

Re: NSKVODeallocateBreak?

2008-11-18 Thread Nick Zitzmann
On Nov 18, 2008, at 4:41 PM, John Zorko wrote: My app is hitting this breakpoint, and I don't know what it means (and there is no stack frame in the call stack that lives in my source, so while I can make a good guess about where it's happening, i'm not 100% sure). What n00b mistake

Re: window flash

2008-11-18 Thread Alexander Cohen
You are absolutely right. thank you. AC On Nov 18, 2008, at 6:33 PM, Michael Ash wrote: On Tue, Nov 18, 2008 at 4:15 PM, Alexander Cohen [EMAIL PROTECTED] wrote: Hi, I have a window controller that i'm creating dynamically in the applicationDidFinishLaunching: app delegate notification. In

Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-18 Thread Douglas Davidson
On Nov 18, 2008, at 1:57 PM, Rua Haszard Morris wrote: What are the different options for flipping the coordinates of the destination view? I've tried doing it by scaling and translating the CGContext, but this results in problems with underlining or the character orientation (depending

Re: Can you @synthesize simple arrays?

2008-11-18 Thread Ken Thomases
On Nov 17, 2008, at 11:15 AM, Michael Ash wrote: I'd recommend either using an NSArray even though you don't want to, or writing accessors with indexes that you'd call like this: [self setMyString:@foo atIndex:3]; [self myIntegerAtIndex:4]; Actually, this is a perfect example of where the

Re: How to determine if the system is started up from firewire disk

2008-11-18 Thread Ryota Tsukiashi
Hi Ken, Hi Chris, I just want to let you know that I could specify if the start up disk is connected through firewire bus. Thank you for your information! Sincerely, Ryota 2008/9/10 Ryota Tsukiashi [EMAIL PROTECTED]: Hi Chris, Thank you. I will try FSMegaInfo as well. Ryota 2008/9/10

Re: release and reference counting query

2008-11-18 Thread Peter N Lewis
At 19:33 +0100 18/11/08, Marc Stibane wrote: what's the reason for defining a local variable aViewController to receive the UIViewController pointer, then copying that to the instance variable with a setter method which increases the retain count, then decrease the retain count again - instead

Using Cocoa with Spaces?

2008-11-18 Thread Bill Janssen
Is there an Objective-C interface to Spaces? I've got a NSStatusItem that pops up an NSWindow when you click on it. I'd like that window to come up in the current Space, not the Space it was in when it was started, or the space it was in the last time it popped up that NSWindow. Is there some

Window title bar accessory view

2008-11-18 Thread Houdah - ML Pierre Bernard
Hi! I would like to replicate the accessory views found in the top right of window title bars. Examples include Coda, iCal, Safari,... How can I add subviews to the window's title bar? Pierre ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Using Cocoa with Spaces?

2008-11-18 Thread Ken Thomases
On Nov 18, 2008, at 7:43 PM, Bill Janssen wrote: Is there an Objective-C interface to Spaces? I've got a NSStatusItem that pops up an NSWindow when you click on it. I'd like that window to come up in the current Space, not the Space it was in when it was started, or the space it was in the

Re: Window title bar accessory view

2008-11-18 Thread Andrew Merenbach
On Nov 18, 2008, at 6:26 PM, Houdah - ML Pierre Bernard wrote: Hi! I would like to replicate the accessory views found in the top right of window title bars. Examples include Coda, iCal, Safari,... How can I add subviews to the window's title bar? Pierre Greetings, Pierre, I think that

Re: Window title bar accessory view

2008-11-18 Thread Kyle Sluder
On Tue, Nov 18, 2008 at 9:26 PM, Houdah - ML Pierre Bernard [EMAIL PROTECTED] wrote: I would like to replicate the accessory views found in the top right of window title bars. Examples include Coda, iCal, Safari,... Are you talking about things like the little lock icon in HTTPS Safari windows?

Re: release and reference counting query

2008-11-18 Thread Andy Lee
On Nov 18, 2008, at 8:24 PM, Peter N Lewis wrote: I would actually write: self.viewController = [[[UIViewController alloc] initWithNibName:@MoveMeView bundle:[NSBundle mainBundle]] autorelease]; I like this best too. I like combining the autorelease with the alloc/ init because you don't

NSArrayController - Remove all objects?

2008-11-18 Thread Jean-Nicolas Jolivet
I'm working on a custom NSArrayController (basically just a subclass that allows drag and drop for a table view)... So far it's working well however, when new files are dropped on my table view, I need to remove all the current files... right now the dropped files are only added to the

Re: NSArrayController - Remove all objects?

2008-11-18 Thread Jean-Nicolas Jolivet
I was able to get it done using: [self removeObjectsAtArrangedObjectIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [[self arrangedObjects] count])]]; can't believe there isn't a better way to do it?? On 18-Nov-08, at 10:23 PM, Jean-Nicolas Jolivet wrote: I'm working on a

Re: NSArrayController - Remove all objects?

2008-11-18 Thread DKJ
The superclass NSObjectController has a remove method that might do what you want. dkj On 18-Nov-08, at 19:31 , Jean-Nicolas Jolivet wrote: I was able to get it done using: [self removeObjectsAtArrangedObjectIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [[self

Binding a CoreData string value to an NSTextView

2008-11-18 Thread John Joyce
Has anyone had any success Binding a CoreData string value to an NSTextView? Everything I try seems to be flumoxed by the NSAttributedString of the NSTextStorage backing store. The lame thing is this: in code, it is easy to [aTextView setString: (NSString*)aString] or [aTextView string] So

Re: Question about interface builder

2008-11-18 Thread Steve Nicholson
On Nov 17, 2008, at 1:59 PM, Kyle Sluder wrote: Why does everyone new to the platform want to immediately discard IB? It is the correct (yes, correct, not preferred, not easiest, but *correct*) way to implement your interface. I think a quote from Aaron Hillegass is appropriate here:

Re: Opening Ports in Leopard

2008-11-18 Thread Gerriet M. Denkmann
On 19 Nov 2008, at 01:00, Michael Ash [EMAIL PROTECTED] wrote: On Tue, Nov 18, 2008 at 4:49 AM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: On 18 Nov 2008, at 15:27, Stefan Werner wrote: Aren't port numbers 0-1023 privileged under Unix and therefore only to applications running as

Query on Sample applications

2008-11-18 Thread Arnab Ganguly
Hi All, What is the difference between AUGraph and AudioQueue. I am trying to play a AACplus file which I am able to play it in application with AUGraph but the same doesn't play in application with AudioQueue. For AUGraph I am referring to the application playfile present under

Input Managers perspective

2008-11-18 Thread Donnie Lee
Hello! I plan to use Input Managers hack to add functionality to closed-source software. I know that these hacks are not a good programming technics, but there is no other way except using it. I have only one question: will Input Managers be available in Mac OS X 10.6? Because I don't want if my

Noobie Question: NSTableView and XML-RPC

2008-11-18 Thread Kennard Smith
Hello, cocoa list! I'm relatively new to cocoa and was wondering if I could get some advice. I want to hook up an NSTableView to an XML-RPC server to provide it with its data. I am not sure the best way to go about this, and everywhere I find online says something a little different

Passing TableView information into a new dialog

2008-11-18 Thread Luis
Hello My objective is to when a user right-clicks on a row in a TableView and selects from the context menu an option, to show a new dialog that handles that option. How would I go to let the new dialog to know the information that was present in the row that was selected? The main dialog

NSDecimalNumber NSString question

2008-11-18 Thread Brooke Gravitt
Hello, I'm trying to better acquainted with Cocoa and Obj-C, having some trouble with simple things. Perhaps someone could kindly apply cluebat to skull for me. I'm accepting a couple of string values from a pair of NSTextField and would like to take these values and do some math with them,

Making an invisible Cocoa window catch mouse clicks

2008-11-18 Thread Nicholas Francis
Hi guys. I'm working on the Unity game tool. I'm trying to make my own eye dropper (user clicks eye dropper icon, clicks somewhere on screen to sample the color) but are running into an issue catching the second mouse click. I'm creating a borderless NSWindow (that I move around under the

Re: Making an invisible Cocoa window catch mouse clicks

2008-11-18 Thread Quincey Morris
On Nov 18, 2008, at 17:53, Nicholas Francis wrote: I'm creating a borderless NSWindow (that I move around under the mouse) and call setAlphaValue: 0 on it to make it transparent. Sadly this makes the window ignore mouse events, so the click activates whatever app is under the cursor. Is

CIAnnotation Sample Code

2008-11-18 Thread M Pulis
Has anyone run CIAnnotation in 10.5? Seems to work in 10.4 PPC (I don't have 10.4 on intel), how can I get it running in 10.5. I was hoping to use its techniques, but I'm targeting 10.5. I would find it convenient if the sample code I am learning from actually runs on the OS I am using.

  1   2   >