Re: OS X : Different icon for Status Item

2013-12-22 Thread Simon Maurice
e the reference code: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSStatusItem_Class/Reference/Reference.html Cheers Simon On 8 Dec 2013, at 3:47 pm, Jerry Krinock wrote: > How can I make my app’s Status Item (“menulet", right side of menu b

Re: How to implement readonly property

2012-11-12 Thread Joerg Simon
ost of the time, but you can not rely on it... Cheers, Jörg On Nov 12, 2012, at 3:33 PM, Tom Davie wrote: > > On 12 Nov 2012, at 14:18, Joerg Simon wrote: > >> You can use dispatch_sync. The blog post of oliver dobnigg (cocoanetics) >> summs that up quite nicely: >&g

Re: How to implement readonly property

2012-11-12 Thread Joerg Simon
You can use dispatch_sync. The blog post of oliver dobnigg (cocoanetics) summs that up quite nicely: http://www.cocoanetics.com/2012/02/threadsafe-lazy-property-initialization/ Cheers, Jörg On Nov 12, 2012, at 2:44 PM, Tom Davie wrote: > > On 12 Nov 2012, at 13:39, Marco Tabini wrote: > >>>

Re: Core Data fetch performance

2012-11-12 Thread Joerg Simon
This summs it up really nicely: http://wbyoung.tumblr.com/post/27851725562/core-data-growing-pains Links to radar bug reports are within the blog post. The conclusion it is not usable does not hold under iOS6, since nested contexts work quite wonderfully there, but it shows problems under iOS5.

(no subject)

2011-04-20 Thread Simon Gislen
How do I get details of a photo taken by the iphone? I want to know the time/date the photo was taken and get where it was taken via the GPS details for an application made by xcode. Thanks... ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: Mail Frameworks

2010-06-02 Thread Simon Wolf
d a problem with spaces in attachment names. Again, you can read about it in their forums at: http://www.mulle-kybernetik.com/forum/viewtopic.php?f=5&t=59 However the framework is easy to use and has been reliable and I worked around the last

Re: Which color space?

2010-06-01 Thread Simon Raisin
Thanks Seth. I haven't been able to find any good docs on this stuff. Do you happen to know where I can read conceptual material about color spaces? On Mon, May 31, 2010 at 1:11 PM, Seth Willits wrote: > On May 31, 2010, at 4:06 AM, Simon Raisin wrote: > > > Thank yo

Reduce the size of an NSImage

2010-06-01 Thread Simon Raisin
Hi, I am trying to reduce the size of an NSImage by 50% and then save the reduced image out to disk. The following code does not reduce the image. Should I be going about this a different way? Thanks! Simon NSImage* inputImage = [[NSImage alloc] initWithContentsOfFile:[fileNames

Re: Which color space?

2010-06-01 Thread Simon Raisin
channel. I hate it when the docs are incorrect. And I copied that method call from an Apple sample... I'll remove the extraneous casts. :) Thanks again, Simon On Sun, May 30, 2010 at 10:08 PM, Seth Willits wrote: > On May 29, 2010, at 7:09 AM, Simon Raisin wrote: > > > I would li

Which color space?

2010-05-30 Thread Simon Raisin
I would like to create an 8-bit grayscale image but I cannot find a color space that uses only 1 8-bit value per pixel. Everything seems to either be RGB, RGBA, or one color *plus* an alpha channel. Am I going about this the wrong way? Thank you in advance, Simon NSBitmapImageRep

Re: Create an NSImage using pixel (RGB) data

2010-05-25 Thread Simon Raisin
geData = [bitmapImageRep representationUsingType: NSJPEGFileType properties:imageProps]; [outputImageData writeToFile:@"output.jpg" atomically:NO]; [bitmapImageRep release]; [pool drain]; return 0; } On Tue, May 25, 2010 at 8:24 AM, Simon Raisin wrote: > Hi, > &g

Re: Deallocation while key value observers still registered

2010-05-25 Thread Simon ONeill
). Without a solution I am just allowing the leaks by not deallocing. Would be most interested in solution. Simon On 25 May 2010, at 15:54, Kyle Sluder wrote: > On Tue, May 25, 2010 at 6:14 AM, Gideon King wrote: >> An instance 0x11d0ce4b0 of class NMGeneralPrintAccessoryContr

Create an NSImage using pixel (RGB) data

2010-05-25 Thread Simon Raisin
Hi, I would like to create an new NSImage (of a specified size) by modifying its pixel data directly. I'm assuming that I have to create/provide a representation then call [rep bitmapData], but I've been unable to come up with a working solution thus far. Does anyone know of an example I might l

Re: CAScrollLayer scrollToPoint: suppress animation

2010-05-11 Thread Simon Wolf
) kCFBooleanTrue forKey: > kCATransactionDisableActions]; > [CATransaction commit]; Try something like this: [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:0.0f] forKey:kCATransactionAnimationDuration]; [scrollLayer scrollToPoint:...]; [CATransaction commit

using xcode ,how to compile .c file as .m file?

2010-03-30 Thread simon Scylla
i need to port some code to iphone and now i find that i can not call system interface of objc. i can rename my files from 888.c to ***.m and it works. but i do not wanna rename my files. what should i do?i think there must be some choice in xcode.but i don't konw..[?] <<33C.gif>>_

Re: Appropriate -setWantsLayer: timing

2010-02-19 Thread Simon Wolf
On 19 Feb 2010, at 03:50, Scott Anguish wrote: > > On Feb 16, 2010, at 5:45 PM, Simon Wolf wrote: > >>> >>> I'm wondering when writing a layer hosting view, when the most appropriate >>> time is to set the layer and call -setWantsLayer:YES? >>&g

Re: Appropriate -setWantsLayer: timing

2010-02-18 Thread Simon Wolf
initWithFrame: and in -awakeFromNib without any problems. At the very least you could check in -awakeFromNib to see if the view is already layer-backed and only call setWantsLayer: if it is not. Simon Wolf Website: http://www.ottersoftware.com Twitter: http://www.twitter.com/sgaw iChat: simo

Re: Appropriate -setWantsLayer: timing

2010-02-18 Thread Simon Wolf
h may not (in my experience ever) be in the current run loop. Simon Wolf Website: http://www.ottersoftware.com Twitter: http://www.twitter.com/sgaw On 16 Feb 2010, at 20:52, Keith Duncan wrote: > I'm wondering when writing a layer hosting view, when the most appropriate > time is to s

ColorSyncDeprecated.h in OSX - 10.6

2009-11-19 Thread Simon ONeill
Hi, Does anyone have any idea where the new functions for ColorSyncManager (presumably 64bit focused) are documented? The only information I can find lists the new functions but does not document them. (Application Services Reference Update. dated 2009-8-28 lists the names but has no reference

Re: [iPhone] OS 3.0 and @synthesize AND @dynamic for the same property

2009-11-14 Thread Joerg Simon
09 at 2:52 AM, Joerg Simon wrote: Dear all other Cocoa Developers: In an app I am developing I have the following strange thing: [code in the .h file] @interface XY : CALayer BOOL _editing; ... @property (assign, getter = isEditing) BOOL editing; [/code] [code in the .m file] @synthesi

[iPhone] OS 3.0 and @synthesize AND @dynamic for the same property

2009-11-13 Thread Joerg Simon
cks a OS 2.x iPhone simulator, that means I can't use the simulator on the iPhone, and it secondly means that the app has problems to compile with the new compiler, and that would be bad if apple switches internally. Any suggestions what to do? Thanks

pump event

2009-10-25 Thread simon Scylla
hello every one i need to get current system event,waiting until the function get some event,then remove it from the queue what should i do? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-28 Thread Simon Hickmott
I don't really agree, as others have suggested, that this is a hammering a Mac-shaped peg into a Windows-shaped hole problem we're dealing with here. There are many successful Mac applications which use a tabbed view to consolidate multiple documents: TextMate comes immediately to mind — yo

stringByTrimmingCharactersInSet

2009-05-06 Thread Simon Raisin
NSString *s = [@"1,660.0" stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@","]]; For some reason s is always "1,660.0". Shouldn't the comma be removed? Thanks, CxT ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Bindings confusion

2009-04-28 Thread Simon Raisin
Hi, I'm running into a binding issue is my main application so I wrote a small test app to try to track down the problem: primarily that I cannot get the UI to update appropriately when it is configured to observe my model objects via bindings. // AppDelegate.h @class ModelObject; @interface AppD

Re: Error: mutating method sent to immutable object

2009-04-04 Thread Simon Robbie
Change: [arregloNumeros release]; } to: [arregloNumeros removeAllObjects]; } [arregloNumeros release]; regards Simon ___ Cocoa-dev mailing list (Cocoa

Core Animation/Core Image Crash

2009-01-30 Thread Simon Haertel
imation before the window closes (by listening to the NSWindowWillCloseNotification), but this only seems to delay the crash a bit. Does anybody have a clue what's wrong here? Thanks in advance. Simon Haertel ___ Cocoa-dev mailing list (Cocoa-dev@list

Accessing Customize Toolbar items created in ni b file

2009-01-08 Thread Simon James
p and then translate them but you notice the change as the panel slides down. Thanks Simon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Enable repeated Keyboard Event when key stays down

2008-12-31 Thread Simon Vanesse
Does anyone got this fixed before ? Thanks for your answers, Best, Simon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: NSDateFormatter strangeness

2008-11-18 Thread Simon Wolf
it's clear that there is a problem converting from the string to date. Is there an issue with creating static NSDateFormatters? Its curious because some of the date formatters in my app work as expected, others do not. Set your date format string to "dd/MM/" [formatter setD

Re: Cocoa Programming iPing exercise

2008-10-02 Thread Simon Wolf
then step through your code until it errors and then post back here with more details. Simon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coco

Simon Raisin wants to chat

2008-10-01 Thread Simon Raisin
--- Simon Raisin wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-4cf3a124c9-b5625013e4-863fde0ab01abf2e You'

Re: Transparent Background for a Progress Indicator (NSView)

2008-09-13 Thread Simon Richardson
Thank-you all for your responses, this makes more sense... cheers On 13 Sep 2008, at 04:43, Michael Ash wrote: On Fri, Sep 12, 2008 at 3:25 PM, Simon <[EMAIL PROTECTED]> wrote: Hi guys, This is a quick question I hope! What's the most efficient way to make the progress indicator

Transparent Background for a Progress Indicator (NSView)

2008-09-12 Thread Simon
ld try and find out the dirty area if I need to... Sorry in advance if I'm missing something, but your help will be greatly appreciated. Thank-you Simon [1] http://stickupkid.com/cocoa/mailing-list/progress-gear.png ___ Cocoa-dev mai

Re: URL Text Color in NSTextView

2008-08-11 Thread Simon Wolf
On 11 Aug 2008, at 14:27, Uli Kusterer wrote: On 11.08.2008, at 14:45, Simon Wolf wrote: All of my attempts to change the foreground color via NSForegroundColorAttributeName have failed so far as have attempts to set the color in the Credits.html file (CSS works for standard text, not

URL Text Color in NSTextView

2008-08-11 Thread Simon Wolf
regroundColorAttributeName have failed so far as have attempts to set the color in the Credits.html file (CSS works for standard text, not links however). Does anyone have any idea how I can solve this? Simon ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

sphere in openGL ES ++IRC

2008-06-25 Thread Simon Fleming
oduce a sphere as I would like - can anyone please help me with this? I seem to be having difficulties finding an openGL ES irc community - can anyone also suggest where I might locate the community? J Many thanks Simon ___ Cocoa-dev mailing list (

Meetup - Macs in Prague (Czech Republic)

2008-06-13 Thread Simon Liu
waiting for?! We're meeting in Prague (Czech Republic), 1st July 2008... hope to see you there! http://macsinprague2008.pbwiki.com/ Regards, Simon et al p.s. Sorry for the short notice, but for the folks in Europe, Prague is very easy to g

Re: DirWatch

2008-05-23 Thread Simon Wolf
.5 or later, look into FSEvents. And if you do that, Stuart Connolly has written a nice wrapper called SCEvents: http://stuconnolly.com/projects/source-code/ Simon smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Simon Wolf
On 20 May 2008, at 01:18, Brad Gibbs wrote: On pages 36-7 of Aaron Hillegass' new book, he provides sample code for a Foundation Tool called Lottery. The code is below: NSMutableArray *array; array = [[NSMutableArray alloc] init]; int i; for (i = 0; i < 10; i++) {

Re: NSNumberFormatter Changes Reflected In NSTextField

2008-05-12 Thread Simon Wolf
On 9 May 2008, at 16:59, Simon Wolf wrote: I have an NSTextField with an associated NSNumberFormatter which I am using to format the values shown to a specific number of decimal places. I have a second NSTextField which I am using to display and edit the number of decimal places that I

NSNumberFormatter Changes Reflected In NSTextField

2008-05-09 Thread Simon Wolf
imple way to achieve the refresh but after an hour of messing around I though I'd ask wiser folk. Many thanks. Simon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: NSApplicationMain & Main NIB File

2008-05-09 Thread Simon Wolf
On 9 May 2008, at 16:11, Jens Alfke wrote: On 9 May '08, at 6:41 AM, Simon Wolf wrote: So much to learn ... but what a fantastically refreshing change from VB6 and .Net. So I gather :) I just read this excellent article on ArsTechnica by a Windows developer who's recently switc

Re: NSApplicationMain & Main NIB File

2008-05-09 Thread Simon Wolf
On 9 May 2008, at 12:48, Paul Sargent wrote: On 9 May 2008, at 10:10, Simon Wolf wrote: I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions. I'm a VB developer who has been a Mac user for several years but I'm only

Re: NSApplicationMain & Main NIB File

2008-05-09 Thread Simon Wolf
Thanks Stephan. The whole area of building and build configuration seems to be ignored by Aaron Hillegass's wonderful book so I may need to delve into the official Xcode User Guide. Simon On 9 May 2008, at 11:15, Stephan Burlot wrote: In Xcode, in the Project menu, choose "E

NSApplicationMain & Main NIB File

2008-05-09 Thread Simon Wolf
I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions. I'm a VB developer who has been a Mac user for several years but I'm only now starting to dip my toe into XCode and I think that I'm going to have loads of questions, some practica

Custom view output to projector

2008-04-11 Thread Simon
the signal, though sometimes I use a data connection. I've tried looking in the mailing list's archives, but couldn't seem to find anything. Does anyone have any ideas (or links to sample code)? Thanks, Simon Jones ___ Join Excit

[iPhone] xml parsing

2008-03-10 Thread Simon Fell
, so it never even occurred to me that this might not be supported). Would this constitute using a private API ? (is there a good definition of private API somewhere?) Tx Simon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not