Re: runModalForWindow is disabling my menus

2015-09-05 Thread Stephane Sudre
On Sat, Sep 5, 2015 at 2:14 PM, Felipe Monteiro de Carvalho wrote: > Hello, > > I want to have a modal window which has menus, so I setup the menus > for the window and make it modal with NSApp.runModalForWindow and > everything is OK, except that my menu items are all disabled! Which feature of

Re: runModalForWindow is disabling my menus

2015-09-06 Thread Stephane Sudre
On Sun, Sep 6, 2015 at 10:20 AM, Felipe Monteiro de Carvalho wrote: > On Sat, Sep 5, 2015 at 8:49 PM, Stephane Sudre wrote: >> Which feature of a modal window are you looking for? > > Disabling all other windows in the app and staying on top of them. > >> Because havi

Re: API to determine status of System Integrity Protection?

2015-09-13 Thread Stephane Sudre
On Sat, Sep 12, 2015 at 9:53 PM, Ed Wynne wrote: > > On Sep 12, 2015, at 1:45 PM, sqwarqDev wrote: > >> >>> On 13 Sep 2015, at 00:43, SevenBits wrote: >>> >>> That document doesn't mention an API… >>> >> Hence, since that is the current documentation, my conclusion : “Don’t think >> so”. > > >

Re: Thoughts on autolayout

2016-04-21 Thread Stephane Sudre
On Thu, Apr 21, 2016 at 10:36 AM, Kristof Van Landschoot wrote: > All of these points sound more like "Thoughts on Interface Builder to me". > Using autolayout without Interface Builder is a better experience (although > not perfect, surely). Not using autolayout is an even better experience so f

Re: Thoughts on autolayout

2016-04-21 Thread Stephane Sudre
Thanks for the reference. Unfortunately, according to the documentation, it's only available on OS X 10.11 or later. On Thu, Apr 21, 2016 at 12:55 PM, Jonathan Mitchell wrote: > >> On 21 Apr 2016, at 11:48, Stephane Sudre wrote: >> >> >> - you still have to u

Re: Thoughts on autolayout

2016-04-22 Thread Stephane Sudre
I tend to believe that it's because of step 4 that some developers (#include me) still do not like auto layout. Because even with a very simple view, you can waste a lot of time with this step. On Thu, Apr 21, 2016 at 9:49 PM, Bill Cheeseman wrote: > >> On Apr 21, 2016, at 3:19 PM, Charles Srstka

[NSXPCConnection] Getting the effective user/group ids of the listener

2016-08-14 Thread Stephane Sudre
It's possible to retrieve the effective user/group ids of the remote peer from the listener delegate method. But it there a way for the remote peer to get the effective user/group ids of the remote listener? According to the CREDENTIALS section of the xpc_objects(3) man page, it seems to be possi

Re: Class is implemented in both

2016-08-15 Thread Stephane Sudre
On Mon, Aug 15, 2016 at 3:29 AM, Trygve Inda wrote: > I have a Pref Pane and a Screen Saver module. They both share a common > helper class (MyDisplayManager). > > When the pref pane has been loaded and I go into the screen saver (or vis > versa), because the host app is System preferences, I get:

Re: Class is implemented in both

2016-08-15 Thread Stephane Sudre
at 9:41 AM, Stephane Sudre wrote: > - you could rename the class after one of the 2 projects has been > built and then codesign the new binary. Basically, you scan the > executable binary for the name of the class and you replace it with a > name of the same length. I'm doin

Getting/Setting FinderInfo attributes using native Cocoa API?

2016-10-13 Thread Stephane Sudre
Question: Is there a native Cocoa API that can replace the FSGetCatalog/FSSetCatalog API when it comes to retrieving/setting the FinderInfo (and FinderExtInfo) attributes of a file? OS X 10.8 and later. Problem: The FS CoreCarbon APIs are deprecated but apparently, there's nothing to replace th

Re: Getting/Setting FinderInfo attributes using native Cocoa API?

2016-10-13 Thread Stephane Sudre
haven't kept up with them. > -- > Gary L. Wade (Sent from my iPad) > http://www.garywade.com/ > >> On Oct 13, 2016, at 7:03 AM, Stephane Sudre wrote: >> >> Question: >> >> Is there a native Cocoa API that can replace the >> FSGetCatalog/FSSetCatal

Re: Getting/Setting FinderInfo attributes using native Cocoa API?

2016-10-14 Thread Stephane Sudre
ngs. And if there's no real way now, look up the info on the structures > and set them by way of the xattr calls. > -- > Gary L. Wade (Sent from my iPad) > http://www.garywade.com/ > >> On Oct 13, 2016, at 9:21 AM, Stephane Sudre wrote: >> >> No specific attrib

Re: Getting/Setting FinderInfo attributes using native Cocoa API?

2016-10-15 Thread Stephane Sudre
te: > On 14 Oct 2016, at 23:33, Stephane Sudre wrote: > >> I ended up writing a category for NSManager to deal with this using >> the xattr.h APIs. […] > > > If the goal is to copy extended attributes (as one post alluded to) then > there is the `COPYFILE_METADATA`

Re: OS X MapKit issues

2014-09-17 Thread Stephane Sudre
Is it signed with the appropriate Mac App Store Developer Certificate? On Wed, Sep 17, 2014 at 9:31 PM, Rick Mann wrote: > I've built the beginnings of a simple OS X app that will display some stuff > on a map. Although the Map View I put in the window is displaying a map, and > is set to show

Re: NSTableColumn second Text Cell child

2014-12-01 Thread Stephane Sudre
That's correct. You will have a cell (NSCell in the project I used to check) in the hierarchy when you use a view-based table view. I would tend to believe it's an IB bug that the data cell for the TableColumn is displayed. ___ Cocoa-dev mailing list (C

Re: Blurry is the New Sharp

2015-01-05 Thread Stephane Sudre
On Tue, Jan 6, 2015 at 12:38 AM, Graham Cox wrote: > It's not just pointless eye-candy, it's actually contrary to usability. In > Safari, I'd come to the conclusion that the window frame "tint" was an > indication of whether you were in a private session or a non-private one, but > after some

Re: Extrange problem with screensaver in 2 monitors and key stroke

2015-02-02 Thread Stephane Sudre
If you are subclassing the keyDown:|keyUp: method of the screensaver view, you are limited by the fact that there can only be one first responder. A solution could be to post a notification when you detect the N key being pressed (or released) and refresh the Web View from the notification observe

Re: Setup an icon for a screensaver

2015-03-04 Thread Stephane Sudre
What do you consider to be the icon for the screensaver? The icon that is shown in the Finder for the .saver file or the the thumbnail preview you see in the Desktop & Screen Saver Pref pane? Unless I'm mistaken, for the first one: it would require to add a custom icon either via the Finder Info

Re: Try to open an app from a screensaver

2015-04-25 Thread Stephane Sudre
On Sat, Apr 25, 2015 at 12:40 AM, Juanjo Conti wrote: > I'm developing a screensaver. I want to achieve the following: then the > user hits the key 's', stop the screensaver and open a program. > > Handling the key stroke is done, and I'm launching the program as: > > (the following code search ru

Re: Language options: Objective-C, Swift, C or C++?

2015-06-21 Thread Stephane Sudre
On Wed, Jun 17, 2015 at 10:16 AM, Quincey Morris wrote: > On Jun 17, 2015, at 00:56 , Graham Cox wrote: >> >> To me this is actually a good thing that I’ll be sorry to see go away in >> Swift. >> >> With a separate header that only contains the public stuff, I can see at a >> glance what a clas

Re: Can I show different content in different screens? (screensaver)

2015-07-25 Thread Stephane Sudre
Another solution: use Objective-C. It will also allow your screen saver to be compatible with older OS X releases (10.8 if you are using ARC). On Fri, Jul 24, 2015 at 7:13 PM, Juanjo Conti wrote: > I wonder why the second line doesn't' compile > > var screens = NSScreen.screens() as! [

Re: Updating a screensaver from 10.6 to 10.10

2015-07-27 Thread Stephane Sudre
• You may also need|have to consider moving away from Garbage Collection. 10.10 (or 10.11?) is the last version to support it. • You need to codesign the screen saver on 10.9.5 or later, otherwise, it won't be GateKeeper v2 compatible and the user won't be able to double-click it in the Finder to

Re: Tech update avoiding legacy code

2015-08-14 Thread Stephane Sudre
On Fri, Aug 14, 2015 at 8:01 AM, Jens Alfke wrote: > Do you have a definite business need to keep supporting 10.5? I can’t believe > you have many customers still running it — it came out in 2007 (the last > release I worked on at Apple!) > > In terms of priorities, I think ARC is the biggest wi

Re: Tech update avoiding legacy code

2015-08-14 Thread Stephane Sudre
On Fri, Aug 14, 2015 at 6:42 PM, Jens Alfke wrote: > >> On Aug 13, 2015, at 11:27 PM, Appa Rao Mulpuri >> wrote: >> >> Thanks for the priority order. In GDC Vs ARC, GCD is the first one to opt >> unless if you are app has more memory leaks. Correct me If I am wrong. > > ARC will simplify your so

Re: Will iOS app accepted on App Store if 80% of UI is rendered on UIWebView and 20% being native OCR

2015-08-20 Thread Stephane Sudre
From your description, your app would use official APIs. So in theory, it doesn't matter if your app is just presenting a web view (like a lot of apps). But considering that the interpretation of the App Store Guidelines can vary depending on the reviewer or the weather forecast, the only way to k

Re: Weird "iPhone OS 4.0 Library" dialog popping up

2010-05-05 Thread Stephane Sudre
The iPhone OS 4 SDK is probably under NDA. You should probably use the Developer Forums on the ADC website instead. On Wed, May 5, 2010 at 1:49 PM, Tino Rachui wrote: > I've installed beta 3 of the new iPhone OS 4 SDK. From time to time a dialog > pops up now titled "iPhone OS 4.0 Library - To d

Re: ANN: Syntax highlighting editor view

2010-06-02 Thread Stephane Sudre
Which license? One file mentions Apache, others don't. On Wed, Jun 2, 2010 at 12:53 PM, jonat...@mugginsoft.com wrote: > From time to time the issue of syntax highlighting/colouring is raised on the > list. > > Fragaria is framework based on Smultron (now Fraise) that provides a simple > way of

Re: How to detect Time Machine volume?

2011-08-02 Thread Stephane Sudre
This code would work in most cases but is actually unreliable. Obvious cases: you have 2 text files with these names ar the root of a partition. Worse case: an old time machine partition has been replaced by a new one. Since the old partition is some kind of a second backup, the user has not remov

Re: How to detect Time Machine volume?

2011-08-03 Thread Stephane Sudre
I agree that the idea is to skip the Time Machine directory (current or old), not the entire partition. On Tue, Aug 2, 2011 at 8:51 PM, Charles Srstka wrote: > On Aug 2, 2011, at 12:37 PM, Stephane Sudre wrote: > > Worse case: an old time machine partition has been replaced by a new >

Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Stephane Sudre
On Fri, Aug 19, 2011 at 11:51 PM, Seth Willits wrote: > On Aug 19, 2011, at 2:19 PM, Charles Srstka wrote: > Looking through the docs for QTMovieView, it seems that not only is its only initializer, -initWithFrame: deprecated, but according to the docs it’s not even available past

Re: Is there any API to detect the WIFI/CELL Signal Strength

2011-08-24 Thread Stephane Sudre
There are both supported and private APIs to get this kind of data. In Mac OS X 10.6 and later, check the CoreWLAN.framework. On Wed, Aug 24, 2011 at 5:19 AM, Jens Alfke wrote: > > On Aug 23, 2011, at 5:38 PM, Sasikumar JP wrote: > >> For my education, could you let me know,if there is any API t

Re: Screensaver via App Store?

2012-01-11 Thread Stephane Sudre
On Wed, Jan 11, 2012 at 8:08 AM, Gabriel Zachmann wrote: > Can someone enlighten me whether / how it would be possible to distribute a > screensaver via the Mac App Store? > > What I would like to provide via AppStore is a "real" screensaver, i.e., one > that lives in ~/Library/Screen Savers/ .

Re: Square NSWindow corners?

2012-02-02 Thread Stephane Sudre
Have you set some special flags in Interface Builder for this window? Is is a NSWindow or a NSPanel? On Thu, Feb 2, 2012 at 2:27 AM, Samuel Williams wrote: > Hi, > > I seem to be getting some weird artefacts on my sheets: > > http://imgur.com/3L8Hk > > The corners next to the Cancel and Create bu

Re: TextEdit - Open Recent - slow

2012-02-06 Thread Stephane Sudre
On Sun, Feb 5, 2012 at 9:24 AM, Gerriet M. Denkmann wrote: > Since some time when I click in TextEdit: > File → Open Recent > it takes a long time for the menu to appear. Sometimes 10 seconds, sometimes > 7. > When I do it again it is faster (but not instantaneous as in all other apps). > When I

Re: Localization for nibs

2012-02-18 Thread Stephane Sudre
On Thu, Feb 16, 2012 at 4:37 AM, Satyanarayana Chebrolu wrote: > Hi, > currently my application supports only English. In the future versions we > would like to have it in around 15 languages. > > What is the best practice for having localized nibs. > > 1) Common approach, different nibs for diff

Re: What to use instead of operatingSystemVersionString

2012-02-24 Thread Stephane Sudre
If this is an AppKit related bug then you could check the NSAppKitVersionNumber if a newer version was released for 10.6.1 that solved the issue. On Fri, Feb 24, 2012 at 7:56 AM, Gerriet M. Denkmann wrote: > The documentation says of NSProcessInfo operatingSystemVersionString: > "This string is n

NSShowNonLocalizedStrings?

2011-02-01 Thread Stephane Sudre
Is the NSShowNonLocalizedStrings default values supposed to work as described in the documentation? "If you set this default to YES (in the global domain or in the application’s domain), then when the method can’t find a localized string in the table, it logs a message to the console and capitaliz

Re: Books covering iOS security issues

2011-03-16 Thread Stephane Sudre
I haven't read it so it's just to add a reference to the list: Professional Cocoa Application Security Graham J. Lee, Wrox, 2010 ISBN 978-0-470-52595-1, £33.99 http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470525959.html ___ Cocoa-dev mailing list

Re: Distribution via DMG fails

2011-03-29 Thread Stephane Sudre
Do you know what the testers reporting the issue have all in common? Have you asked them to check the Console logs? On Tue, Mar 29, 2011 at 9:22 AM, Gabriel Zachmann wrote: > I don't know if this is the correct forum, so please advise if there is a > more suitable one. > > I have developed a l

Re: Distribution via DMG fails

2011-03-30 Thread Stephane Sudre
On Wed, Mar 30, 2011 at 4:04 AM, Gabriel Zachmann wrote: >> Are you sure you're building the application the same way for both cases? If >> one's a debug build and the other is a release build, then that could >> explain that you're not getting all architectures in one case. > > Yes, I am sure a

Re: Distribution via DMG fails

2011-03-31 Thread Stephane Sudre
Not the issue AFAIK. The quarantine flag does not affect the double-click action on a screen saver module. My $0.02 On Thu, Mar 31, 2011 at 10:43 AM, Warren Dodge wrote: > On Mar 29, 2011, at 1:39 AM, Stephane Sudre wrote: >> Do you know what the testers reporting the issue have all

Re: Framework Installation Directory

2011-04-09 Thread Stephane Sudre
If you're not limited by the Mac App Store requirements (for 3rd party dev), another solution might be to install your framework in /Library/Frameworks. Of course, this would require an installation package. On Friday, April 8, 2011, Mr. Gecko wrote: > I need help with the Installation Directory

[MapKit] Question regarding a workaround of one of its shortcomings?

2011-05-17 Thread Stephane Sudre
As far as I can tell, OverlayViews are not clickable. So, I'm subclassing MKMapView and overloading the GestureRecognizers actions handlers to deal with that. Considering that these actions handlers are not documented (well, they are through a quick NSLog output), would doing that be considered u

Re: [MapKit] Question regarding a workaround of one of its shortcomings?

2011-05-17 Thread Stephane Sudre
Solved. Saving the original gesture recognizers and replacing them with other ones works well. On Tue, May 17, 2011 at 5:10 PM, Stephane Sudre wrote: > As far as I can tell, OverlayViews are not clickable. > > So, I'm subclassing MKMapView and overloading the GestureRecogni

Re: How to disable double tap on UIWebView

2011-07-11 Thread Stephane Sudre
Is it to disable zooming? Because there's apparently a property for that. On Mon, Jul 11, 2011 at 2:27 PM, Symadept wrote: > Hi, > > How can I disabe double tap on UIWebView. I tried to override touchesBegan > but it is not invoked. Any idea how can I fix this. ___

[NSTextView] Is there a workaround for Snow Leopard new word selection behavior/bug?

2010-09-02 Thread Stephane Sudre
Case: - I need to detect double-click on a word when the alt key is hold down (to do something similar to what Xcode does). To do this I subclassed NSTextView and implemented a custom the mouseDown: method (that calls the super method, don't panic). This works fine on Mac OS X 10.4.x and 10.

Re: [NSTextView] Is there a workaround for Snow Leopard new word selection behavior/bug?

2010-09-02 Thread Stephane Sudre
It's a good solution if you need in which direction you need to shrink the selection. But I can't know that. On Thu, Sep 2, 2010 at 12:57 PM, vincent habchi wrote: > Le 2 sept. 2010 à 21:42, Stephane Sudre a écrit : > >> >> This does not work as well in Mac OS X 10.6

Re: Continuous animation locks UI?

2010-09-07 Thread Stephane Sudre
Not sure if this is the same on iOS but in Mac OS X, you can call - [NSRunLoop addTimer: forMode:] on the current run loop. NSEventTrackingRunLoopMode would be a good candidate. On Tue, Sep 7, 2010 at 6:32 AM, Dave DeLong wrote: > Hi everyone, > > I'm working on an iPhone app, and I'm trying to m

Re: Make checkbox in table view uneditable

2010-09-15 Thread Stephane Sudre
On Wed, Sep 15, 2010 at 4:29 AM, Keary Suska wrote: > > On Sep 14, 2010, at 5:59 PM, Shane Stanley wrote: > >> I have a table view using Cocoa bindings, and all columns have editable >> turned off in the Attributes panel. However one column, which contains a >> checkbox cell, steadfastly remains e

Re: remove icon from Dock

2010-10-13 Thread Stephane Sudre
On Tue, Oct 12, 2010 at 9:50 PM, Charles Srstka wrote: > and the Dashboard server gets killed, terminating all active Dashboard > widgets. Is it an issue? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: [NSImage] Bug in System Preferences? [solved]

2010-10-26 Thread Stephane Sudre
On Tue, Oct 26, 2010 at 4:14 AM, Gregory Weston wrote: > Iceberg-Dev wrote: > >>> When working with NSBitmapImageRep, calling -bitmapData is a signal >>> that you may be editing the data. It is not repackaged until the >>> bitmap is drawn, or somesuch. It's illegal to just stash a pointer >>> to t

[NSDate] Bug in dateByAddingTimeInterval: on Mac OS X 10.5

2010-11-22 Thread Stephane Sudre
According to the NSDate.h header: - (id)dateByAddingTimeInterval:(NSTimeInterval)ti AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; Problem is when I run the following code on Mac OS X 10.5 on a PowerMac G5, I get the result listed below. #import int main (int argc, const char * argv[]) { NSAut

UTI for ScreenSaver, Automator Actions and PreferencePanes?

2010-12-18 Thread Stephane Sudre
Which UTIs are supposed to be used for CFBundleDocumentTypes > LSItemContentTypes for : - Screen Savers - Automator Actions - PreferencePanes ? I want to be able to drag and drop them on an application icon. I'm looking into getting rid of the CFBundleTypeExtensions array in my Info.plist. __

Re: LOCATING MEDIA FILES IN MACINTOSH

2011-01-06 Thread Stephane Sudre
1) You should probably get a Google Laptop to solve this caps lock issue. 2) There's a framework for your media question: http://www.karelia.com/imedia/ On Thu, Jan 6, 2011 at 12:54 PM, Abhinav Tyagi wrote: > Hi All, > > Although this querry may seem simple to you but since i dont have any idea

Re: TextView cannot Use Selection for Find

2012-04-07 Thread Stephane Sudre
On Sat, Apr 7, 2012 at 10:23 AM, Gerriet M. Denkmann wrote: > I have a window with an NSTextView (inside a ScrollView). > Everything works as expected, but when I select some text and do command-e it > just beeps. > Same for Find Next and Find Previous. > (Edit → Find → has these commands grayed

Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?

2012-04-10 Thread Stephane Sudre
Interesting problem. I'm afraid one of the easier solutions is to use a NSTextView instead of a NSTextField. When you set the selectedAttributes of the field editor, I believe it will be forgotten as the field editor will try to mimick the way the text look like when not edited, (Sure the doc says

Re: How to set the foreground and background colors of selected text in a field editor (NSTextView)?

2012-04-10 Thread Stephane Sudre
With the delegate method, you get the appropriate NSTextView field editor. The issue is that you're not editing this NSTextView, you're editing the NSTextField. At least that's my take on this. On Tue, Apr 10, 2012 at 12:09 PM, Kyle Sluder wrote: > On Apr 10, 2012, at 11:29

Re: NSView + NSScrollView, not scrolling

2012-05-05 Thread Stephane Sudre
A question that could give a better idea of the issue: Is the scroller thumb visible? On Sat, May 5, 2012 at 12:31 AM, qvacua wrote: > I have got a very basic question about NSScrollView. I embedded my > custom NSView into an NSScrollView using Xcode's "Embed In..." menu > item. The following is

Re: Sandboxing and calling Launchctl

2012-05-29 Thread Stephane Sudre
On Tue, May 29, 2012 at 10:52 AM, Mark Allan wrote: > Hi all, > > I posted this to the developer forums yesterday but I think this list > probably gets a good bit more eyeball than the forum, so I'm sending here > too. Sorry for the cross-post if you're seeing it twice.  Anyway... > > I'm trying

Re: Sandboxing and "helper apps"

2012-05-30 Thread Stephane Sudre
On Wed, May 30, 2012 at 3:28 AM, Todd Heberlein wrote: >  In the past you could include a full UNIX application inside a Mac > application bundle. For example, in the directory > >        MyApp.app/Contents/MacOS > > could be the Cocoa executable "MyApp" and the UNIX executable "my_helper_app". >

Re: Sandboxing and "helper apps"

2012-05-30 Thread Stephane Sudre
On Wed, May 30, 2012 at 4:20 PM, Todd Heberlein wrote: > > On May 30, 2012, at 4:53 AM, Stephane Sudre wrote: > >> It's allowed. IIRC, when the helper app is launched from the main >> application, it inherits the entitlements/restrictions of its parent. > > I thoug

Re: How to get SDK 10.5 on XCode 4?

2012-06-05 Thread Stephane Sudre
On Tue, Jun 5, 2012 at 1:39 AM, Jens Alfke wrote: > > On Jun 4, 2012, at 3:58 PM, Vojtěch Meluzín wrote: > >> But I want to generate builds for >> 10.5 SDK, but using the new GCC. XCode 4 installer created SDKs for 10.6 >> and 10.7, how can I get the 10.5 SDK? > > You'll need to build with the 10.

Re: String Encoding

2012-06-12 Thread Stephane Sudre
Do you have examples in mind where the result of - [NSFileManager fileSystemRepresentationWithPath] differs from the one of - [NSString UTF8String]? On Tue, Jun 12, 2012 at 1:40 PM, Aki Inoue wrote: > When dealing with the file system pathnames, you should use the file system > representation me

Re: CFPreferences and Mountain Lion

2012-06-22 Thread Stephane Sudre
On Thu, Jun 21, 2012 at 10:27 PM, Scott Ribe wrote: > I'm not sandboxed, and the preferences I'm sharing are between my own apps. > Also it variously works then doesn't work for a while on the same machine, > same OS release, same app build. Can you post a small sample code showing how you save

Re: Quit helper app when main app terminates

2012-07-12 Thread Stephane Sudre
On Thu, Jul 12, 2012 at 9:33 AM, Jerry Krinock wrote: > What is the best way to make a helper app quit when the associated main app > quits (or crashes)? No harm will be done if it keeps running for a minute or > so. A solution that does not involve killing the helper application from the main

Re: Drag-and-drop crashes

2012-07-30 Thread Stephane Sudre
On Mon, Jul 30, 2012 at 10:31 PM, McLaughlin, Michael P. wrote: > I have a Mac OS app that worked fine in Snow Leopard. In moving up recently > to Lion, I also moved up to Xcode 4.4 and recompiled the app, targeting 10.6 > but without otherwise changing the source code. I got two problems whe

Re: Sandboxing die.die.die

2012-08-22 Thread Stephane Sudre
On Wed, Aug 22, 2012 at 5:18 PM, Alex Zavatone wrote: > Regarding Sandboxing on Mac OS or iOS, the situations I want to see addressed > are these: > > The app gets regularly updated. Preferences must exist out side of the app. > What easy and straightforward method that does not require the de

Re: Sandboxing die.die.die

2012-08-30 Thread Stephane Sudre
On Thu, Aug 30, 2012 at 1:59 AM, Greg Parker wrote: ... > OS X does not require sandboxing. For apps that are not sandboxed, > traditional file access is unchanged. Mountain Lion's Gatekeeper can be > configured to require signed apps, but it does not enforce sandboxing. Somehow, Gatekeeper can

Re: nswindow close button for my splitview does not display cross while mouse hover

2012-10-16 Thread Stephane Sudre
On Tue, Oct 16, 2012 at 9:35 AM, Sanjay Arora wrote: > Hi, > I am creating a new Button like the window's close button to attach it to my > splitview to give is same close action. > > The problem is the button does not displays cross while I the hover mouse > over it. > > NSButton *closeContro

Re: 2 icons showing in dock

2013-02-27 Thread Stephane Sudre
On Wed, Feb 27, 2013 at 9:27 AM, Rick C. wrote: > Hi, > > When a customer adds my app to Login Items in System Preferences it > (sometimes) causes my app to launch showing 2 icons in the dock after a > restart. Only one instance is running (Activity Monitor) and only one icon > shows in Comman

Re: Turning off screen shot ability

2013-03-07 Thread Stephane Sudre
On Wed, Mar 6, 2013 at 9:43 PM, Brad O'Hearne wrote: > 2. NSWindow allows you to specify the level of access other processes have to > the window's content. Aside from the fact that is seems a bit bizarre that > there's the ability to grant no access (NSWindowSharingNone, which doc states > sho

Re: Defaults not stored

2013-04-04 Thread Stephane Sudre
On Thu, Apr 4, 2013 at 5:56 AM, Steve Mills wrote: > My screensaver follows examples I've seen as far as creating its defaults in > its initWithFrame method: > > ScreenSaverDefaults*defaults = [ScreenSaverDefaults > defaultsForModuleWithName:MyModuleName]; > > // Register our

[BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification

2013-07-31 Thread Stephane Sudre
Is it a known bug that the NSWorkspaceDidTerminateApplicationNotification notification is not sent for applications whose LSUIElement key is set to YES? I've found an entry for this in StackOverflow but the explanations provided to the original poster are forgetting the LSUIElement factor. Mac OS

Re: [BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification

2013-07-31 Thread Stephane Sudre
1, at 06:32, Stephane Sudre wrote: > >> Is it a known bug that the NSWorkspaceDidTerminateApplicationNotification >> notification is not >> sent for applications whose LSUIElement key is set to YES? > > The *behavior* is known, at least by me, and is as you say, Stephane. T

Re: [BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification

2013-08-01 Thread Stephane Sudre
On Thu, Aug 1, 2013 at 1:31 AM, Jerry Krinock wrote: > > On 2013 Jul 31, at 12:46, Stephane Sudre wrote: > >> I will file one because I consider that even if LSUIElement is set, it's >> still an application (otherwise there would no point in returning an running &g

Re: Main window disappears. Sometimes.

2008-06-03 Thread Stephane Sudre
On Jun 2, 2008, at 19:50, Bill Bumgarner wrote: On Jun 2, 2008, at 10:31 AM, Michael Vannorsdel wrote: On Jun 2, 2008, at 5:24 AM, Francis Perea wrote: Hi Graham, thanks for your reply. I didn't know I could set any memory setting trough Interface Builder! After your question I looked in

Re: Main window disappears. Sometimes.

2008-06-03 Thread Stephane Sudre
On Jun 3, 2008, at 18:29, Bill Bumgarner wrote: On Jun 3, 2008, at 9:20 AM, Stephane Sudre wrote: An issue is that the previous releases still exist (retail Mac OS X Leopard boxes are still 10.5?) and that someone may need to support them. And in these cases, I would consider that retain

Tooltip and 10.4.11. Bug?

2008-06-10 Thread Stephane Sudre
Is there a known bug in Mac OS X 10.4.11 when it comes to tooltips attached to a NSTableView rows? I'm seeing tool tips being cut off when the mouse is over a row and a medium length string should be displayed in the tool tip. ___ Cocoa-dev mai

[NSOutlineView/NSTableView] Returning nil enables auto-edition?

2008-06-13 Thread Stephane Sudre
Mac OS X 10.4.11 (PPC) I'm seeing a potential bug or unsupported behavior when it comes to cell edition. I have a NSOutlineView. One of the column data cell of this view is a text field cell which is potentially editable. Now, if I return nil in - (id) outlineView:(NSOutlineView *) inOut

Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?

2008-06-18 Thread Stephane Sudre
On Jun 13, 2008, at 11:23 AM, Corbin Dunn wrote: You probably mean, editing (not edition). Certainly. [...] - (BOOL) outlineView:(NSOutlineView *) inOutlineView shouldEditTableColumn:(NSTableColumn *) inTableColumn item:(id)inItem First off -- 10.4 *requires* a double click to begin an

[Text rendering] Is there a known issue in Mac OS X 10.4.11?

2008-06-19 Thread Stephane Sudre
I'm seeing another occurrence of incorrect text rendering in Mac OS X 10.4.11. First occurrence was with Tool tip: the text was cut, the second line of text was not displayed. Now, I've also seen this issue with a NSTextField. Text cut too, no second line displayed (as if the text after a

Re: localizable strings file with macro

2008-03-04 Thread Stephane Sudre
On 4 mars 08, at 10:28, Julien Jalon wrote: 1) Might not be a good idea to use CFStringGetCStringPtr as it might return NULL2) kCFStringEncodingMacRoman is likely not a good choice as the encoding, especially for localized strings If I were you, I'd do something like (warning: Mail compiled

Re: localizable strings file with macro

2008-03-04 Thread Stephane Sudre
On 4 mars 08, at 11:27, Jean-Daniel Dupas wrote: Le 4 mars 08 à 11:21, Stephane Sudre a écrit : On 4 mars 08, at 10:28, Julien Jalon wrote: 1) Might not be a good idea to use CFStringGetCStringPtr as it might return NULL2) kCFStringEncodingMacRoman is likely not a good choice as the

Re: two table view selection problem

2008-03-04 Thread Stephane Sudre
On 4 mars 08, at 17:14, Corbin Dunn wrote: On Mar 4, 2008, at 6:49 AM, Stéphane wrote: On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and then if I select a row in tableView2, I want the row

[NSTableView/NSOutlineView] How can we draw a custom border?

2008-03-08 Thread Stephane Sudre
I would like to draw a custom dashed border for a specific NSOutlineView (*). I sub-classed NSScrollView to do this. The problem is that the NSTableHeaderView is drawn after and over the NSScrollView. And so the topline of the NSTableHeaderView is drawn over my nice dashed line. I'm looki

Re: [NSTableView/NSOutlineView] How can we draw a custom border?

2008-03-08 Thread Stephane Sudre
On Mar 8, 2008, at 7:58 PM, Kyle Sluder wrote: On Sat, Mar 8, 2008 at 1:21 PM, Stephane Sudre <[EMAIL PROTECTED]> wrote: Maybe it's possible in IB 3 to set the class for the NSTableHeaderView of a NSOutlineView but this would ruin my nib file since I'm developing on Tige

Re: How to create the slider switch in the time machine preference panel in system preferences?

2008-03-09 Thread Stephane Sudre
On Mar 9, 2008, at 1:40 PM, Scott.D.R wrote: Greetings everyone. Maybe many of us have enabled the time machine function for our leopards. Very cool machine. I am interested in the time machine preference panel. When you open it, there is a slider-like switch allow you to enable or disable

Re: [newbie] NSTableView - First NSColumn should not be affected by horizontal scrollbar

2008-03-10 Thread Stephane Sudre
On 10 mars 08, at 12:54, Tobias R. wrote: Hi, I have a csv-file as datasource for an NSTableView. This part of my project works. And now my Question: Is there a way to make the first NSColumn of my NSTableView ... a) always visible and b) not being affected by the horizontal scrollbar, but on

Re: Problem in Mouse over

2008-03-10 Thread Stephane Sudre
On 10 mars 08, at 12:47, ADIL SALEEM wrote: Hi, [...] What i am doing is something like this... - (void)mouseEntered:(NSEvent *)theEvent { [textField setStringValue:@"New Value"]; } - (void)mouseExited:(NSEvent *)theEvent { [textField setStringValue:@"Old Value"]; } Add a NSLog(@"%@",

Re: on launched with cocoa

2008-03-10 Thread Stephane Sudre
On Mar 10, 2008, at 18:28, Mr. Gecko wrote: Hello, I have done an application with applescript studio and I'm trying to make it a cocoa application I had an on launched command where it did some things and I can't seem to find a way to do an on launched with cocoa I know there is a way. I al

Re: Is CoreData dead?

2008-03-11 Thread Stephane Sudre
On Mar 11, 2008, at 14:01, Greg Robertson wrote: Not sure if this is the best place to post this question but here goes. ... If there is a better place to post this question please let me know as well. Bug Reporter > Enhancement request ___ C

Re: Check box cell in NSTableView

2008-03-11 Thread Stephane Sudre
On Mar 11, 2008, at 13:15, Ivan C Myrvold wrote: I can not get my check boxes in an NSTableColumn to show the mixed state. The first time I click an empty check box, it shows as if it is checked, it should have been mixed. A mixed state can not be determined by a click. What a click should

Re: How to solve application hang issue?

2008-03-13 Thread Stephane Sudre
On Mar 13, 2008, at 11:43, parag vibhute wrote: Hi guys, I have implemented cocoa application in which I am using threading. While running the application hangs in between & I am unable to find out where exactly in code it is hanging. Can you tell me how to debug hang issue? Thread Viewer

Re: How to make a UI like in Mail?

2008-03-13 Thread Stephane Sudre
On Mar 13, 2008, at 10:04, Thomas Engelmeier wrote: On 12.03.2008, at 23:54, Thomas Wickl wrote: I´m new to Cocoa and I really need a hint in UI Design. How can I create this Panel like it is shown in a lot of Application like Mail? That is not a panel (a panel is a window with a small t

Re: NSDistributedNotificationCenter and Launchd

2009-01-09 Thread Stephane Sudre
On Jan 9, 2009, at 12:58 AM, Aaron Scott wrote: I have a background process that when started manually talks correctly with the GUI app using NSDistributedNotificationCenter. However, once I use launchd to start it as a LaunchDaemon I get no receiving of notifications from either the daemo

Re: NSTableView column sizes

2017-03-15 Thread Stephane Sudre
On Wed, Mar 15, 2017 at 9:59 AM, Daryle Walker wrote: > 1. Is there a way to make the last (right in the U.S. localization) column to > always be at the end of the table-view, instead of a gap after a resize? Yes, there is. > 2. My table has two columns. Is there a way to keep their sizes in pr

Re: Detecting if current user owns the screen (screen lock/FUS)

2017-04-21 Thread Stephane Sudre
SystemConfiguration.framework? You can: - retrieve the current uid,gid, user name with SCDynamicStoreCopyConsoleUser - be notified via a C callback when the console user changes (SCDynamicStoreCreate, SCDynamicStoreKeyCreateConsoleUser(), SCDynamicStoreSetNotificationKeys, SCDynamicStoreSetDispat

Re: Carbon -> Cocoa

2018-08-18 Thread Stephane Sudre
It might be the new Carbon once: - there is ABI stability in Swift. This could be not before late 2019. - the new APIs are only available in Swift. Is Swift NIO a hint this is coming sooner than expected? I don't know. I don't use networking frameworks. Regarding the complexity of porting from

Re: Screen saver sometimes starts and stops immediately

2018-11-26 Thread Stephane Sudre
Could it be that your screen saver is trying to access data in a user folder protected by tccd like ~/Pictures ? info 13:52:14.333614 +0100 ScreenSaverEngine stop animation (id = 0x7ffe73822800) default 13:52:14.334610 +0100 tccd MacOS error: -67050 default 13:52:14.335183 +0100 ScreenSaverEngin

Re: 64-bit iOS

2013-09-11 Thread Stephane Sudre
On Wed, Sep 11, 2013 at 12:41 PM, Jean-Daniel Dupas wrote: > > Thanks for this remainder, but I think we all already know that 620k is > enough for anyone… Well, I must confess I didn't know that. I thought 640k was required. ___ Cocoa-dev mailing lis

  1   2   >