building and running on Snow Leopard

2009-09-23 Thread Chris Idou
If you build an application on Snow Leopard, but against the 10.5 deployment target, and then you run the program on Snow Leopard, do you get all the Leopard 10.5 bugs as if you ran it on Leopard, or do you get to benefit from Snow Leopard bug fixes only if you build against the 10.6 deplotment

Charisse Marie Napenas/Cebu/Lexmark is out of the office.

2009-09-23 Thread Charisse Marie Napenas
I will be out of the office starting 09/23/2009 and will not return until 09/25/2009. I will respond to your message when I return. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: building and running on Snow Leopard

2009-09-23 Thread Ken Thomases
On Sep 23, 2009, at 2:20 AM, Chris Idou wrote: If you build an application on Snow Leopard, but against the 10.5 deployment target, and then you run the program on Snow Leopard, do you get all the Leopard 10.5 bugs as if you ran it on Leopard, or do you get to benefit from Snow Leopard bug

Re: automatically send the email from code using NSWorkspace

2009-09-23 Thread jonat...@mugginsoft.com
On 23 Sep 2009, at 04:37, jon wrote: great, found it, Thank you. do you (or someone) know how to get the current machine's default Email address for sending email? rather than typing it into a field like this. emailMessage.sender = [self.fromField stringValue]; Try the AddressBook f

Re: building and running on Snow Leopard

2009-09-23 Thread Chris Idou
Ok, so if I don't desire bug for bug 10.5 compatibility, but I do want it to run on 10.5, then I select 10.6 SDK and 10.5 deployment target, is that right? I'm curious what happens if you use some external frameworks that were built against 10.5 SDK, yet your main app is 10.6 - I assume it wil

Re: drawing/masking one image with the alpha value from another

2009-09-23 Thread Roland King
Thanks David .. I'm a little confused by this though. The documentation for masks doesn't really tell you where alpha fits in to the overall 'mask value', in fact they don't really say how a general RGB value maps to 0->1.0. They talk totally about color as in RGB (1,1,1) maps to 1 and RGB(0

Re: building and running on Snow Leopard

2009-09-23 Thread Dave Keck
> Also, since I'd like to take advantage of Snow Leopard bug fixes, but I don't > want to blow up on Leopard, what is the correct way to test whether you are > running on Leopard so that the code at runtime can implement Leopard specific > work arounds? I use this: http://pastie.org/627153 ___

clicks in webview

2009-09-23 Thread Arun
Hi all, I'm wondering if there is a way to make a links in WebView to open with the system's default browser? Thanks. Arun KA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Suppressing Crash Reporter dialogs for a task

2009-09-23 Thread Mark Woods
Thanks Ken. The link you gave me was very helpful and the crash dialog no longer appears using the code provided. I've verified that it works on 10.5 and 10.6. Thanks to everyone who posted. Mark. On Sep 23, 2009, at 5:57 AM, Ken Thomases wrote: On Sep 22, 2009, at 2:27 PM, Alastair Hough

Re: building and running on Snow Leopard

2009-09-23 Thread Ken Thomases
On Sep 23, 2009, at 3:20 AM, Chris Idou wrote: Ok, so if I don't desire bug for bug 10.5 compatibility, but I do want it to run on 10.5, then I select 10.6 SDK and 10.5 deployment target, is that right? I wouldn't have put it that way, but, yes, I suppose that's accurate. I'm curious what

Re: WebView and PickerView problem

2009-09-23 Thread Bartosz Białecki
Hi, I'am very new in programming in Cocoa and I have no idea what is this pickerview. I don't create any pickerview myself. This pickerview appears myself when I click a select eleemnt on website. I forgot (maybe this is important information), I'm creating application for iPhone. > > On 22 Sep

Re: CoreData SQL tracing in the iPhone Simulator...

2009-09-23 Thread Brian Bruinewoud
That doesn't seem to work in the iPhone Simulator. I set the value in XCode, hardcoded it main.m's call to UIApplicationMain and started the iPhone Simulator itself with that value, but none of them worked. Anyone know how to get this working in the Simulator? On 23/09/2009, at 01:44 , Sean

Re: Suppressing Crash Reporter dialogs for a task

2009-09-23 Thread Jean-Daniel Dupas
The only way I now is to prevent the exception to be caught by the Crash Reporter. It can be done by disabling your task exception port. #include task_set_exception_ports(mach_task_self(), EXC_MASK_BAD_ACCESS | EXC_MASK_CRASH, MACH_PORT_NULL, NULL, NULL) This is not something I would do i

Re: Why am I always getting the linker error: 'duplicate symbol'...?

2009-09-23 Thread Jeremy Pereira
On 21 Sep 2009, at 21:19, Frederick C. Lee wrote: I'm trying to replace #define directives with c datatype directives.Example: (1) #define x 123 versus... (2) const unsigned x = 123; I place this at the top of the .h (or .m) file, outside of any class or method as stand alone. However

Re: building and running on Snow Leopard

2009-09-23 Thread Chris Idou
From: Ken Thomases >Don't test whether you're running on Leopard. Just write your code to cope >with either behavior of the framework. Read the release notes for the >frameworks on which you rely for more guidance. I think when you see the >sorts of bug

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Jeremy Pereira
On 22 Sep 2009, at 17:19, Eric Schlegel wrote: Secondly, is there any way in any of those environments to programmatically switch Spaces? For example, if Space 3 happens to be visible, is there any Cocoa code I can run which will switch the visibility to, say, Space 2? No, there is no API (in

Re: NSArrayController & bindings: next hurdle.

2009-09-23 Thread Colin Howarth
On 23 Sep, 2009, at 06:21, Kyle Sluder wrote: On Tue, Sep 22, 2009 at 9:17 PM, Colin Howarth wrote: Well *of course* I am now running with garbage collection... Typo, or perhaps I'm misinterpreting the sarcasm? I did put a smiley there. I don't think I was being sarcastic. More sort of

Re: WebView and PickerView problem

2009-09-23 Thread Andy Lee
I don't know anything about WebView on the iPhone, but I suspect the picker view is a standard way of letting you choose from a element. On the desktop it would be a popup menu, but there is no popup menu on the iPhone. Why are you surprised that the picker view appears? What did you ex

Re: IB does not show Outlet/Action section in inspector

2009-09-23 Thread Gregory Weston
Michael Süssner wrote: I have the problem with every object even the one from the examples (Apple). I have instantiated an NSObject from the IB Library and then I've tried to add an outlet. Still, no outlet section in the inspector (identity). Perhaps I'm misreading, but I suspect that Michae

Re: clicks in webview

2009-09-23 Thread Mike Abdullah
Yes, use a WebPolicyDelegate to tell the WebView to ignore the request and then handle it instead yourself using something like NSWorkspace. On 23 Sep 2009, at 09:51, Arun wrote: Hi all, I'm wondering if there is a way to make a links in WebView to open with the system's default browser? Th

Re: Stability on Snow Leopard

2009-09-23 Thread Kirk Kerekes
I _strongly_ suggest that you (at least temporarily) use the LLVM/ CLANG compilers in XCode, and use the "build and analyze" option that is then available. By the time you have fixed every issue that CLANG finds, I suspect that 90% of your crashes will have evaporated, as well as quite a few

Re: drawing/masking one image with the alpha value from another

2009-09-23 Thread Roland King
Thank you Ken, and for the transparency layer hint too, I wouldn't have thought of that. I missed a whole load of blend modes not realizing that the Quartz 2D Programming Guide didn't list them all, it stops at luminosity, my bad there for not checking out the actual class docs and finding

Re: IB does not show Outlet/Action section in inspector

2009-09-23 Thread Bill Cheeseman
On Sep 23, 2009, at 7:11 AM, Gregory Weston wrote: There is no mechanism in the current version of the tools for defining outlets and actions in IB; only for assigning them. I don't believe this statement is true, if I understand your point correctly. Here's how to create an outlet or an a

Re: Strategies for tracking a tricky (typing) slowdown/lag bug

2009-09-23 Thread Keith Blount
Hi, Again, many thanks for the help, I really appreciate it. To answer Rick's question first - the lag only occurs after typing for a while, yes (about 1,000 - 2,000 words). It doesn't happen if you just paste text in, or in documents that have only just been opened but already contain thousand

Re: WebView and PickerView problem

2009-09-23 Thread Bartosz Białecki
I want to see some control (i.e. PickerView) when I click on the select element. The problem is that after close PickerView (or whatever this is) the scrollbar of webview changes its position (not scrollbar on website). Select element on website has only numbers. > I don't know anything about

Re: NSTableView flashes when updated

2009-09-23 Thread Corbin Dunn
On Sep 22, 2009, at 11:12 PM, Zephyroth Akash wrote: I've tried to enable Core Animation for each views in IB, even for every components. But enabled or not this option doesn't change the fact that my outline and table views flashes. NSTableView doesn't work very well with CoreAnimatio

CFBundleShortVersionString mystery

2009-09-23 Thread Gabriel Zachmann
I am puzzled at where my CFBundleShortVersionString comes from. Right now, I try to obtain the current version number (to display it in a configure sheet) using this code: NSBundle * bundle = [NSBundle mainBundle]; NSString * version; version = [[bundle infoD

Re: CFBundleShortVersionString mystery

2009-09-23 Thread Graham Cox
On 24/09/2009, at 12:42 AM, Gabriel Zachmann wrote: Can anybody explain to me where that funny version string might come from? Have you done a clean build? Or even just discarded the binary and rebuilt? Editing the values in the info.plist often isn't enough to actually get that data to

Re: Strategies for tracking a tricky (typing) slowdown/lag bug

2009-09-23 Thread Rick Genter
On Sep 23, 2009, at 6:55 AM, Keith Blount wrote: Hi, Again, many thanks for the help, I really appreciate it. To answer Rick's question first - the lag only occurs after typing for a while, yes (about 1,000 - 2,000 words). It doesn't happen if you just paste text in, or in documents that

NSHTTPCookie not writing cookie in 10.4 for safari.

2009-09-23 Thread Aby
Hi, Im am using NSHTTPCookie for storing on to the safari cookie database. When i'm running this code on 10.5 and 10.6 its working fine. But in 10.4 the NSHTTPCookie is not writing the same. My code is as follows : { NSDictionary * aDict = [NSDictionary dictionaryWithObjectsAndKeys: @"Cooki

Re: Stability on Snow Leopard

2009-09-23 Thread BJ Homer
On Wed, Sep 23, 2009 at 6:24 AM, Kirk Kerekes wrote: > ... If you don't happen to be using any of these, (or any macros that hide > relevant code, because the analyzer appears to operate only on unexpanded > code) you should be golden. The analyzer definitely expands macros. I've got some lega

Re: Getting content out of a WebView

2009-09-23 Thread Jens Alfke
On Sep 22, 2009, at 5:53 PM, Eddie Aguirre wrote: getting the data from the WebView through the mainFrame and dataSource works for the initial contents but not the edited contents. The dataSource always returns the unedited content. I've tried editing in the WebView then turning off edit

Multiline label allignment issue.

2009-09-23 Thread Arun
Hi All, I am using a Multi-line label in my application. Some times i need to display one lines and sometimes i need to display a 2 lines sentences. When 2 lines are displayed, the alignment looks good. when 1 line is displayed, the line always occupies the top position in the label. Is there any

Re: app delegate +initialize

2009-09-23 Thread Jens Alfke
Does your class have a subclass, which also has a +initialize method, which doesn't call [super initialize]? That might cause this sort of behavior, because the order in which the classes load may be indeterministic. In general, you cannot predict the order in which objects/classes are in

Re: Multiline label allignment issue.

2009-09-23 Thread Graham Cox
On 24/09/2009, at 1:23 AM, Arun wrote: Is there any way in which while displaying 1 liner, i can position the starting of the label at the center of the label? Not out of the box, no. I wish this were supported... You need to handle this yourself by subclassing the cell. Google for 'RSVer

Re: automatically send the email from code using NSWorkspace

2009-09-23 Thread Jens Alfke
On Sep 22, 2009, at 8:37 PM, jon wrote: great, found it, Thank you. do you (or someone) know how to get the current machine's default Email address for sending email? I personally don't have a default email address. I have one for home and two for work, and which one I want to use i

Re: building and running on Snow Leopard

2009-09-23 Thread Matt Neuburg
On Wed, 23 Sep 2009 03:39:23 -0700 (PDT), Chris Idou said: >From: Ken Thomases > >>Don't test whether you're running on Leopard. > >Well I'm thinking of a particular bug on Leopard with MDItemCreate where you have to choose between your program crashing and leaking memory. Yes, Ken's advice does

Re: Multiline label allignment issue.

2009-09-23 Thread Arun
Thanks a lot... I was thinking of using a Square button (NSButton) instead of the multi-line label with no borders. But to my suprise when i set its title which goes beyond the width of the box, eventhough i had set the word wrapping in IB, it does not wrap. i am wrong in word wrap setting underst

Re: Multiline label allignment issue.

2009-09-23 Thread Graham Cox
On 24/09/2009, at 1:38 AM, Arun wrote: i am wrong in word wrap setting understanding of Square button? Evidently, yes. I expect that button titles are just drawn using relatively simple string drawing rather than the full text layout system. You'll have to face up to it - if you want v

Re: Strategies for tracking a tricky (typing) slowdown/lag bug

2009-09-23 Thread Jens Alfke
On Sep 23, 2009, at 6:55 AM, Keith Blount wrote: So now that I know it's CPU, the question is, how do I track it, given that I've been having poor luck with Activity Monitor and Shark in finding the problem areas of code? What I don't understand is how more and more CPU can get eaten up li

Re: Stability on Snow Leopard

2009-09-23 Thread Jens Alfke
On Sep 22, 2009, at 8:16 PM, Navneet Kumar wrote: My intention was to get some general responses on two things: Memory Management in a program on SnowLeopard (strictly needed?) and the need for code signing. Code signing has nothing to do with app stability. What it does is guarantee to

Creator Codes in Snow Leopard

2009-09-23 Thread Gerriet M. Denkmann
It has been already discussed that Snow Leopard started to ignore Creator Codes. The user can fix this by selecting a document in Finder and doing File → Get Info → Open With. But it would be much better, if my app could do this itself. So I looked at Launch Services Reference, but could not

Re: drawing/masking one image with the alpha value from another

2009-09-23 Thread David Duncan
On Sep 22, 2009, at 9:42 AM, Roland King wrote: Thanks David .. I'm a little confused by this though. The documentation for masks doesn't really tell you where alpha fits in to the overall 'mask value', When you use an image as a mask, the alpha *is* the mask value. 1.0 means full passthr

Re: Creator Codes in Snow Leopard

2009-09-23 Thread Jens Alfke
On Sep 23, 2009, at 9:06 AM, Gerriet M. Denkmann wrote: So I looked at Launch Services Reference, but could not figure out, how to inform Lauch Services which app to use for some document. But if Finder can tell Lauch Services, then my app should be also able to do this, shouldn't it? Where

Re: IB does not show Outlet/Action section in inspector

2009-09-23 Thread Kevin Cathey
1. In any of your project's nib files, go to the Library window (not the Inspector window) and select the Classes tab. Using the pop-up menu at the top, select one of your project's classes in the very long and awkward hierarchical menu. For example, your class MyDocument would appear in th

Re: Oh notification, where are you?

2009-09-23 Thread James Bucanek
Michael Thon wrote (Tuesday, September 22, 2009 11:20 PM +0200): I did find the problem - my thread needs a runloop in order to process notifications. Following this fellow's blog post: http://confuseddevelopment.blogspot.com/2006_10_01_archive.html I added CFRunL

Re: drawing/masking one image with the alpha value from another

2009-09-23 Thread David Duncan
On Sep 23, 2009, at 6:25 AM, Roland King wrote: One question about Transparency Layers, the docs say that when you start one the global alpha is set to 1, shadows are turned off and blend mode is set normal (actually only the Quartz 2D guide says that the blend mode changes, the actual API

Re: Creator Codes in Snow Leopard

2009-09-23 Thread Todd Heberlein
Some may find the following Apple Insider article on the the topic useful: Inside Snow Leopard's UTI: Apple fixes the Creator Code http://www.appleinsider.com/articles/09/09/22/inside_snow_leopards_uti_apple_fixes_the_creator_code.html On Sep 23, 2009, at 9:11 AM, Jens Alfke wrote: On Sep 23

Re: Creator Codes in Snow Leopard

2009-09-23 Thread BJ Homer
On Wed, Sep 23, 2009 at 10:32 AM, Todd Heberlein wrote: > Some may find the following Apple Insider article on the the topic useful: > > Inside Snow Leopard's UTI: Apple fixes the Creator Code > > http://www.appleinsider.com/articles/09/09/22/inside_snow_leopards_uti_apple_fixes_the_creator_code.h

Re: Creator Codes in Snow Leopard

2009-09-23 Thread Todd Heberlein
As a result, most of their conclusions are incorrect as well. If you can't set the UTI differently on two files with the same type code and extension, it can't serve as a creator code. I've been wondering about this. Daring Fireball carried some links with some strong criticisms on this, a

Re: app delegate +initialize

2009-09-23 Thread Matt Neuburg
On Wed, 23 Sep 2009 08:26:58 -0700, Jens Alfke said: >This is why it's best to do your initialization in an -awakeFromNib >method Whoa, whoa. Let's be fair. There is some common initialization (such as registering defaults, esp. when bindings are also involved) that *must* be done in +initialize,

Re: Getting content out of a WebView

2009-09-23 Thread Eddie Aguirre
Yup, that did it. Using the DOM was the way to go. Thanks guys. -- Eddie Aguirre ed...@markzware.com On Sep 23, 2009, at 8:19 AM, Jens Alfke wrote: On Sep 22, 2009, at 5:53 PM, Eddie Aguirre wrote: getting the data from the WebView through the mainFrame and dataSource works for the initi

Re: Creator Codes in Snow Leopard

2009-09-23 Thread Eric Gorr
On Sep 23, 2009, at 12:37 PM, BJ Homer wrote: On Wed, Sep 23, 2009 at 10:32 AM, Todd Heberlein >wrote: Inside Snow Leopard's UTI: Apple fixes the Creator Code http://www.appleinsider.com/articles/09/09/22/inside_snow_leopards_uti_apple_fixes_the_creator_code.html Some may also find it misl

[OT] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Alastair Houghton
On 23 Sep 2009, at 17:42, Todd Heberlein wrote: As a result, most of their conclusions are incorrect as well. If you can't set the UTI differently on two files with the same type code and extension, it can't serve as a creator code. I've been wondering about this. Daring Fireball carried s

Re: IB does not show Outlet/Action section in inspector

2009-09-23 Thread Bill Cheeseman
On Sep 23, 2009, at 12:12 PM, Kevin Cathey wrote: You don't have to use the pop-up at all (Bill, based upon your description here, are you seeing the flat list of classes in the middle of the classes tab?). There are three fast ways to use the Classes tab: I'm a mouse person, so I tend t

Re: automatically send the email from code using NSWorkspace

2009-09-23 Thread Alastair Houghton
On 23 Sep 2009, at 16:31, Jens Alfke wrote: Also, be really careful with your UI. Make it clear to the user that your app is going to send an email on their behalf. Make sure the user knows the sender and recipient addresses, and if possible the message body, and don't send without confirma

Re: CFBundleShortVersionString mystery

2009-09-23 Thread Gabriel Zachmann
Can anybody explain to me where that funny version string might come from? Have you done a clean build? Yes, I did a "clean all targets", removed the build/ directory, and emptied the trash, and searched in spotlight whether there are any executables somewhere else ... to no avail. In o

Re: [OT] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Eric Gorr
On Sep 23, 2009, at 12:55 PM, Alastair Houghton wrote: On 23 Sep 2009, at 17:42, Todd Heberlein wrote: As a result, most of their conclusions are incorrect as well. If you can't set the UTI differently on two files with the same type code and extension, it can't serve as a creator code.

Re: IB does not show Outlet/Action section in inspector

2009-09-23 Thread Gregory Weston
Bill Cheeseman corrected/educated me: On Sep 23, 2009, at 7:11 AM, Gregory Weston wrote: There is no mechanism in the current version of the tools for defining outlets and actions in IB; only for assigning them. I don't believe this statement is true, if I understand your point correctly. He

Re: app delegate +initialize

2009-09-23 Thread Jens Alfke
On Sep 23, 2009, at 9:44 AM, Matt Neuburg wrote: Whoa, whoa. Let's be fair. There is some common initialization (such as registering defaults, esp. when bindings are also involved) that *must* be done in +initialize, as awakeFromNib is not early enough. Sorry, you're right. In that senten

CFBundleGetInfoString & Snow Leopard

2009-09-23 Thread Eric Gorr
With Snow Leopard, the CFBundleGetInfoString string is now obsolete. The string assigned to this key will show up in the Version field in the Get Info window if NSHumanReadableCopyright is not defined. For my application, I set CFBundleGetInfoString to: Major.Minor.Bug (Build #), Cop

How to change the background color of dropdown list of NSComboBox

2009-09-23 Thread Symadept
Hi, Can anybody let me know how to solve these issues? 1. How to change the color of the dropdown list of NSComboBox control 2. And I am overriding the background image of the ComboBox by DrawWithFrame method. But once I selected the item from the list it is not shown in the ComboBox. Once I click

System preferences plugin in Snow Leopard

2009-09-23 Thread Jakub Bednar
Hi list, I've some problems running my System preferences pane on Snow Leopard (Mac OS X 10.6 (10A394)) and I am unable to find the reason. I have build my plugin as 32/64-bit universal binary and moved it to / Library/PreferencePanes. I started System Preferences, but after clicking on my

FW: GetIndMenuItemWithCommandID / SetItemCmd on 64-bit? Cocoa?

2009-09-23 Thread Richardson, Irina
We are having some old native library code written using Carbon and we need to port on 64-bit... Anybody out there has a an easy solution for doing the same thing in Cocoa ? [...] error = GetIndMenuItemWithCommandID( NULL, kHICommandHide, 1, &applicationMenu, &ou

Re: System preferences plugin in Snow Leopard

2009-09-23 Thread Bill Bumgarner
On Sep 23, 2009, at 6:37 AM, Jakub Bednar wrote: Does please anybody know, what am I missing? Maybe some explicit specification that my plugin is 64-bit capable? Did you turn on GC? System Preferences running under 64 bit mode on Snow Leopard is garbage collected. b.bum ___

Re: System preferences plugin in Snow Leopard

2009-09-23 Thread David Duncan
On Sep 23, 2009, at 6:37 AM, Jakub Bednar wrote: Does please anybody know, what am I missing? Maybe some explicit specification that my plugin is 64-bit capable? Did your build your plugin as GC-supported? 64-bit System Preferences plugins need to be Garbage Collected. -- David Duncan App

[moderator] Re: [OT] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Scott Anguish
This might be a repeat - I can’t mail from my regular address from where I am currently. This is not the appropriate list for advocation of UTI over any other file association system. I’m not aware of any that would be appropriate. So please take it elsewhere. The comments on that article,

Re: WebView and PickerView problem

2009-09-23 Thread Andy Lee
This is also deliberate. From a quick test on my iPhone (amazon.com), it looks like when the picker view appears the WebView scrolls as necessary so that the element is not hidden by the picker view. It does a similar thing when you start editing a text field. I doubt there is anything

Re: [moderator] Re: [OT] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Eric Gorr
Actually, I was more interested in learning where questions about UTIs would go (it's not clearly a Cocoa topic), not where advocation of UTI over any other file association system would go. On Sep 23, 2009, at 1:44 PM, Scott Anguish wrote: This might be a repeat - I can’t mail from my regul

Re: System preferences plugin in Snow Leopard

2009-09-23 Thread Kyle Sluder
System Preferences in 64-bit is a Garbage Collected app. Your plugin needs to be GC-aware. > k...@kyle% otool -arch x86_64 -oV System\ > Preferences.app/Contents/MacOS/System\ Preferences |tail -n3 >

[moderator] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Scott Anguish
Just so there is no mistake. Discussion of the removal of creator codes, merit of creator codes, etc, isn’t appropriate for here. I don’t have a suggestion for a better location for you to discuss it. Scott [moderator] On Sep 23, 2009, at 9:06 AM, Gerriet M. Denkmann wrote: It has been al

Re: [moderator] Re: [OT] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Scott Anguish
Oh. Well… There isn’t an Apple mailing list for it. Perhaps the developer forums (deveforums.apple.com) might have an area appropriate if you have access). But mostly you’d need to rely on the doc, providing feedback, and perhaps something like StackOverflow or the like. Not as straight

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Wed, Sep 23, 2009 at 06:46, Jeremy Pereira wrote: > Speaking as a user of Mac OS X, I am relieved about this.  Spaces is a > feature that is designed to allow the user to manage the way his/her apps > appear.  Applications which interfere with the user's preferences (e.g. by > changing the spac

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Tue, Sep 22, 2009 at 12:19, Eric Schlegel wrote: > > On Sep 21, 2009, at 4:39 PM, Hippo Man wrote: > >> Is there a way in Cocoa to programmatically query which Space the user >> is currently looking at? [ ... ] > > You could use the (CoreGraphics, not Cocoa) API > CGWindowListCreateDescriptionF

Re:Stability on Snow Leopard

2009-09-23 Thread dct
From my recent experience, Snow Leopard is a lot less forgiving of double releases. ___ 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: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Tue, Sep 22, 2009 at 12:27, Jesper Storm Bache wrote: > So far we have the following: > [ ... etc. ... ] > > For example, to determine whether or not a (candidate) window is on > the active Space on 10.5, I ended up doing: > [ ... etc. ... ] > > Obviously this is not desirable code, but this is

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Kyle Sluder
On Wed, Sep 23, 2009 at 11:24 AM, Hippo Man wrote: > Understood. But I'm wanting to write my _own_ app to control window > placement within Spaces on my _own_ computer. I want to automate this > instead of having to do a lot of mouse clicking and dragging. This issue has come up a few times recen

Mouse moved events lost in Snow Leopard

2009-09-23 Thread Matteo Manferdini
Hi everybody, I really hope that someone has some advice on this since one of my app stopped working entirely for this in Snow Leopard... I have a full screen window with a QCView that renders a trail of stars. The problem is that in Snow Leopard, when I click on something else and my window loses

Re: Strategies for tracking a tricky (typing) slowdown/lag bug

2009-09-23 Thread Keith Blount
Jens - Great! Thank you. I had rather stupidly ruled out that method simply because I had tried commenting it out last week and it had had no effect. But of course, I had already spent all of last week optimising the typing and custom text view drawing code, so although it had no noticeable effe

Re: Mouse moved events lost in Snow Leopard

2009-09-23 Thread Matteo Manferdini
Another strange behaviour I noticed is that the window seems to disappear, since if I click on the dock icon of my app, the window does not come back. I forgot to notice that the window is transparent, at the screen saver level and lets the mouse clicks go through. Regards. -- Matteo Manferdini

Trying to reproduce a feature of Xcode's interface

2009-09-23 Thread Rui Pacheco
Hi, I'm trying to implement something that Xcode has and I can't figure out how Apple did it. In Xcode, on the main window there's a row of 4 NSSegmentedCells with the labels Detail, Project Find, SCM Results and Build Results. That row of segmented cells sits on some sort of background that stre

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Wed, Sep 23, 2009 at 14:44, Kyle Sluder wrote: > This issue has come up a few times recently: "I want to do X on my own > computer!  I should be able to do it!" I'm not trying to assert that I _should_ be able to anything. Please re-read my messages here, so you can disabuse yourself of that m

Re: [OT] Re: Creator Codes in Snow Leopard

2009-09-23 Thread Sean McBride
On 9/23/09 1:14 PM, Eric Gorr said: >> It seems to me that this isn't Cocoa-related, so it's really off- >> topic... > >Sadly, there doesn't appear to be a good mailing list for these >topics. Launch Service's lineage is Carbon (to use a overloaded term). It uses FSRefs and OSStatus and other Cl

Re: NSManagedObject Initialization Methods Not Called

2009-09-23 Thread Chris Hanson
On Sep 21, 2009, at 12:12 PM, Richard Somers wrote: I have a core data document based application. When a file on the disk is opened -awakeFromInsert and -awakeFromFetch are never called for one of my NSManagedObject objects. Why is not one of these methods getting called when the object is

base32

2009-09-23 Thread Sandro Noel
This is probably stupid but i need to ask, sorry. I've been looking all around the internet for a simple Base 32 encode/ decode cocoa function but all i can find are somehow not compatible with the PHP implementation on my web site. see, if i encode and then decode on the website everything

Re: Stability on Snow Leopard

2009-09-23 Thread Ken Ferry
On Wed, Sep 23, 2009 at 11:27 AM, dct wrote: > From my recent experience, Snow Leopard is a lot less forgiving of double > releases. SnowLeopard is not any more or less forgiving of double releases. There are bugs you can write that happen not to crash on 10.6 or on 10.5. There won't be any pa

CFBundleShortVersionString mystery solved

2009-09-23 Thread Gabriel Zachmann
For the record. I have to use, of course, NSBundle * bundle = [NSBundle bundleForClass:[self class]]; because a screen saver is a bundle that is loaded by other applications, such as System Preferences. Hence, the mainBundle is not the bundle of the screen saver ... Best regards, Gabrie

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Tue, Sep 22, 2009 at 12:27, Jesper Storm Bache wrote: > There is very little external control over Spaces. > Be sure to file enhancement request radars. One related question: I'm new to the Apple development world, and I want to make sure that I know the right place to file such an enhancement

Re: base32

2009-09-23 Thread Gleb Dolgich
On 23 Sep 2009, at 21:14, Sandro Noel wrote: I've been looking all around the internet for a simple Base 32 encode/decode cocoa function but all i can find are somehow not compatible with the PHP implementation on my web site. see, if i encode and then decode on the website everything vali

Re: base32

2009-09-23 Thread Greg Guerin
Sandro Noel wrote: so i'm trying to find a simple cocoa base32 encode/decode function that would be as simple as this php one,. or a good specification that i can build from.. Any pointer would be ok, It shouldn't be that hard to write one yourself. It's pretty elementary. The basic pri

Re: base32

2009-09-23 Thread Sandro Noel
Hey Gleb, Using CocoaFob for my application was my first goal, but could never get it to work nice with the PHP implementation i have. and since i've never dealt to much with C and never really had to digg into binary code and slices, i'm just starting to understand the concept. yes i know,

Drawing text chunks (e.g. paras) in a text view with alternating background colours

2009-09-23 Thread Keith Blount
Hi, I have a text view that needs to draw different ranges of text with different background colours - although this isn’t as straightforward as it sounds as I’m not talking about text attributes but the actual text view background itself marking out different passages. Essentially I have an NS

Re: Trying to reproduce a feature of Xcode's interface

2009-09-23 Thread Jens Alfke
On Sep 23, 2009, at 12:31 PM, Rui Pacheco wrote: How do you create that row? How do you keep a row of segmented cells centered? It's probably an NSSegmentedControl with springs on both the left and right sides. —Jens___ Cocoa-dev mailing list (

Mysterious Snow Crash

2009-09-23 Thread Gerriet M. Denkmann
An app which did run fine since Panther, now crashes in Snow Leopard: -[MyDocument windowControllerDidLoadNib:] done -[HSFDelegate applicationDidFinishLaunching:] done Program received signal: “EXC_BAD_ACCESS”. sharedlibrary apply-load-rules all (gdb) bt #0 0x91cbf6b2 in _LSAcquireIconRefFor

How to do what Finder does programmatically

2009-09-23 Thread Gerriet M. Denkmann
On 24 Sep 2009, at 00:51, Scott Anguish wrote: Just so there is no mistake. Discussion of the removal of creator codes, merit of creator codes, etc, isn’t appropriate for here. I don’t have a suggestion for a better location for you to discuss it. Scott [moderator] I am sorry to have

Re: Mysterious Snow Crash

2009-09-23 Thread Kyle Sluder
On Wed, Sep 23, 2009 at 2:47 PM, Gerriet M. Denkmann wrote: > Program received signal:  “EXC_BAD_ACCESS”. Immediate indication you should run with zombies enabled and try again. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

[JOB] iPhone development gig in Tampa, FL.

2009-09-23 Thread John C. Randolph
Ladies and Gentlemen, Looks like I'm about to go to Florida for a month, and the client wants me to help them find someone to join them on a permanent basis. The work is an in-house app for managing their service vendors and streamlining their billing processes. If you've got a solid Obj

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
Randall Meadows wrote: On Sep 23, 2009, at 2:27 PM, Hippo Man wrote: On Tue, Sep 22, 2009 at 12:27, Jesper Storm Bache wrote: There is very little external control over Spaces. Be sure to file enhancement request radars. One related question: I'm new to the Apple development world, and I wa

[__NSFastEnumerationEnumerator nextObject] unexpectedly not very fast!

2009-09-23 Thread Matt Gough
I have an NSEnumerator iterating over an NSMutableArray like so: NSEnumerator *iter = [myMutableArray objectEnumerator]; while (syncInfo = [iter nextObject]) { ... Do some stuff } Upon instrumenting it, I noticed that nextObject was taking over 60% of t

Exit screen saver programmatically?

2009-09-23 Thread Gabriel Zachmann
Does anyone know whether it is possible to exit a screensaver programmatically, i.e., from within the screensaver code, but *without* exiting the System Preferences, if the screensaver was run from System Preferences? I tried [NSApp terminate: self] but that also makes System Preferences

  1   2   >