Re: Code signing checking

2023-01-29 Thread Stephane Sudre via Cocoa-dev
Is this to prevent your executable from loading plugins that are not signed with your team ID? Because, in this case, this would look like what the Hardened runtime does. On Fri, Jan 6, 2023 at 9:29 PM Aandi Inston via Cocoa-dev < cocoa-dev@lists.apple.com> wrote: > Is there any API for doing

Re: /Library/Application Support off limits?

2021-04-15 Thread Stephane Sudre via Cocoa-dev
I'm not sure to understand why you think a folder whose path is /Users/Shared could not be used to share things among users. If the issue you see is that once a user creates a file or directory in /Users/Shared, only this user can manipulate them, just change the POSIX permissions to make them

Re: Exception not being caught in try statement

2021-03-27 Thread Stephane Sudre via Cocoa-dev
It's trying to insert a NSTextTab * object. On Fri, Mar 26, 2021 at 12:11 PM Mark Allan via Cocoa-dev wrote: > > Hi folks, > > Some users are reporting a crash that I can't reproduce, and in an attempt to > gain additional diagnostics from a user, I wrapped the affected line in a > try/catch

NSCollectionView + custom layout => missing vertical drop line

2020-07-14 Thread Stephane Sudre via Cocoa-dev
I'm currently playing with NSCollectionView (10.11+ behavior) and have not been able to figure out a mystery when it comes to drag and drop. I have a NSCollectionView with a custom layout. The layout is based on the standard grid layout with the following modifications in mind: - there can only

Re: Curious bug in oPanel under Mojave in screensaver

2020-05-28 Thread Stephane Sudre via Cocoa-dev
It's a known issue in all 10.14 versions and some 10.15 versions. Apple broke NSOpenPanel when they sandboxed the screensaver pref pane. They also broke window focus BTW. 2 issues can be observed: - you select a file, you get the parent folder. - you switch to the list view mode and you can

Re: Thoughts on productivity

2019-10-24 Thread Stephane Sudre via Cocoa-dev
On Fri, Oct 25, 2019 at 12:38 AM Rob Petrovec via Cocoa-dev wrote: > If its a ranty bug report, which apparently happens a lot, it goes into a > black-hole never to see the light of day if it doesn’t just get closed right > off the bat. So try to keep opinions & criticisms out of it. Just the

Re: Need for Swift

2019-10-16 Thread Stephane Sudre via Cocoa-dev
On Tue, Oct 15, 2019 at 2:26 PM Sandor Szatmari via Cocoa-dev wrote: > But honestly, I don’t have enough Swift experience to know if you can write > bad Swift code. I'm just reading Swift code here and there and it's my personal opinion that 75% of the Swift code I read is bad code. By bad

Re: Thoughts on Cocoa source code

2019-10-10 Thread Stephane Sudre via Cocoa-dev
On Wed, Oct 9, 2019 at 7:19 PM Turtle Creek Software via Cocoa-dev wrote: > > Why is Cocoa source code hidden? > > Many of the frustrations we had with the 64-bit update attempt were caused > by Cocoa's lack of visible source. It was a "black box" that often required > trial-and-error to figure

Re: Screensaver icon ?

2019-09-17 Thread Stephane Sudre via Cocoa-dev
For the record, due to Apple's inability to support 3rd party screen saver seriously, the custom icons for 3rd party screen savers are displayed incorrectly and differently depending on the OS versions. So don't spend too much time on getting your screen saver icon to be pixel perfect. The

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

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: 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,

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

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

2016-10-15 Thread Stephane Sudre
coa-...@simplit.com> wrote: > 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 `COPYF

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

2016-10-14 Thread Stephane Sudre
ctions to do some > things. 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 <dev.iceb...@gmail.c

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

2016-10-13 Thread Stephane Sudre
ay have changed > similarly but I 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 <dev.iceb...@gmail.com> wrote: >> >> Question: >> >> Is there a native Co

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

Re: Class is implemented in both

2016-08-16 Thread Stephane Sudre
at 9:41 AM, Stephane Sudre <dev.iceb...@gmail.com> 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 th

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

[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

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

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 <li...@mugginsoft.com> wrote: > >> On 21 Apr 2016, at 11:48, Stephane Sudre <dev.iceb...@gmail.com> wrote:

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

. Re: API to determine status of System Integrity Protection?

2015-09-15 Thread Stephane Madrau
2015-09-14 21:00 GMT+02:00 : > > The open() API returns EPERM when you try to access something protected by > SIP, but EACCES for normal permission errors. So, you could just try to > write to create a file at /System/foo without root access using open(), and >

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

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 <felipemonteiro.carva...@gmail.com> wrote: > On Sat, Sep 5, 2015 at 8:49 PM, Stephane Sudre <dev.iceb...@gmail.com> wrote: >> Which feature of a modal window are you looking for? > > Disabling all other win

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

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

Re: Tech update avoiding legacy code

2015-08-14 Thread Stephane Sudre
On Fri, Aug 14, 2015 at 8:01 AM, Jens Alfke j...@mooseyard.com 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

Re: Tech update avoiding legacy code

2015-08-14 Thread Stephane Sudre
On Fri, Aug 14, 2015 at 6:42 PM, Jens Alfke j...@mooseyard.com wrote: On Aug 13, 2015, at 11:27 PM, Appa Rao Mulpuri appar...@ivycomptech.com 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

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: 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 jjco...@carouselapps.com wrote: I wonder why the second line doesn't' compile var screens =

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 quinceymor...@rivergatesoftware.com wrote: On Jun 17, 2015, at 00:56 , Graham Cox graham@bigpond.com 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

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 jjco...@carouselapps.com 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

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: 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

Re: Blurry is the New Sharp

2015-01-05 Thread Stephane Sudre
On Tue, Jan 6, 2015 at 12:38 AM, Graham Cox graham@bigpond.com 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,

Re: What triggers -applicationDidChangeScreenParameters: delegate method?

2014-12-11 Thread Stephane Madrau
2014-12-10 21:00 GMT+01:00 cocoa-dev-requ...@lists.apple.com: In the meantime, I compared all the code of my previous version against the code of the new version, looking for changes that might cause this difference in behavior. The only really big change is that my new version makes use of

Re: What triggers -applicationDidChangeScreenParameters: delegate method?

2014-12-11 Thread Stephane Madrau
2014-12-11 14:32 GMT+01:00 cocoa-dev-requ...@lists.apple.com: That's an interesting suggestion. (...) I don't see anything specifically about GPU switches, but there are plenty of functions that can reconfigure a display using the window server. I can imagine some of them might be used

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

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 rm...@latencyzero.com 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,

Re: No Accessibility for Many Status Items

2013-11-16 Thread Stephane Madrau
), but not the Notification manager. -- Stephane ___ 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(at)lists.apple.com Help/Unsubscribe/Update your

Re: 64-bit iOS

2013-09-11 Thread Stephane Sudre
On Wed, Sep 11, 2013 at 12:41 PM, Jean-Daniel Dupas devli...@shadowlab.orgwrote: 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. ___

Re: [BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification

2013-08-01 Thread Stephane Sudre
On Thu, Aug 1, 2013 at 1:31 AM, Jerry Krinock je...@ieee.org wrote: On 2013 Jul 31, at 12:46, Stephane Sudre dev.iceb...@gmail.com 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

[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

Re: [BUG?] LSUIElement=YES and NSWorkspaceDidTerminateApplicationNotification

2013-07-31 Thread Stephane Sudre
, at 06:32, Stephane Sudre dev.iceb...@gmail.com 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. The question

Re: Defaults not stored

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

Re: Turning off screen shot ability

2013-03-07 Thread Stephane Sudre
On Wed, Mar 6, 2013 at 9:43 PM, Brad O'Hearne br...@bighillsoftware.com 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,

Re: 2 icons showing in dock

2013-02-27 Thread Stephane Sudre
On Wed, Feb 27, 2013 at 9:27 AM, Rick C. rickcort...@gmail.com 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

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 saar...@quark.com 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

Re: Sandboxing die.die.die

2012-08-30 Thread Stephane Sudre
On Thu, Aug 30, 2012 at 1:59 AM, Greg Parker gpar...@apple.com 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,

Re: Sandboxing die.die.die

2012-08-22 Thread Stephane Sudre
On Wed, Aug 22, 2012 at 5:18 PM, Alex Zavatone z...@mac.com 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

Re: Drag-and-drop crashes

2012-07-30 Thread Stephane Sudre
On Mon, Jul 30, 2012 at 10:31 PM, McLaughlin, Michael P. mp...@mitre.org 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

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 je...@ieee.org 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

Re: CFPreferences and Mountain Lion

2012-06-22 Thread Stephane Sudre
On Thu, Jun 21, 2012 at 10:27 PM, Scott Ribe scott_r...@elevated-dev.com 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

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 j...@mooseyard.com 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

Re: Sandboxing and helper apps

2012-05-30 Thread Stephane Sudre
On Wed, May 30, 2012 at 3:28 AM, Todd Heberlein todd_heberl...@mac.com 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

Re: Sandboxing and helper apps

2012-05-30 Thread Stephane Sudre
On Wed, May 30, 2012 at 4:20 PM, Todd Heberlein todd_heberl...@mac.com 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 thought (and I'm barely

Re: Sandboxing and calling Launchctl

2012-05-29 Thread Stephane Sudre
On Tue, May 29, 2012 at 10:52 AM, Mark Allan markjal...@blueyonder.co.uk 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.  

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 qva...@gmail.com 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

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

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

2012-04-10 Thread Stephane Sudre
, Stephane Sudre wrote: Allowing rich text, subclassing NSTextField and add some methods from NSTextView did not work so far. Subclassing NSTextField and implemented -setUpFieldEditor didn't do the trick? --Kyle Sluder ___ Cocoa-dev mailing list

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 gerr...@mdenkmann.de 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

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 gerr...@mdenkmann.de wrote: The documentation says of NSProcessInfo operatingSystemVersionString:

Re: Localization for nibs

2012-02-18 Thread Stephane Sudre
On Thu, Feb 16, 2012 at 4:37 AM, Satyanarayana Chebrolu satyanaraya...@ivycomptech.com 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,

Re: TextEdit - Open Recent - slow

2012-02-06 Thread Stephane Sudre
On Sun, Feb 5, 2012 at 9:24 AM, Gerriet M. Denkmann gerr...@mdenkmann.de 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

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 space.ship.travel...@gmail.com wrote: Hi, I seem to be getting some weird artefacts on my sheets: http://imgur.com/3L8Hk The corners next to

Re: Screensaver via App Store?

2012-01-11 Thread Stephane Sudre
On Wed, Jan 11, 2012 at 8:08 AM, Gabriel Zachmann z...@tu-clausthal.de 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

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 j...@mooseyard.com wrote: On Aug 23, 2011, at 5:38 PM, Sasikumar JP wrote: For my education, could you let me know,if

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 sli...@araelium.com 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

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 cocoa...@charlessoft.com wrote: On Aug 2, 2011, at 12:37 PM, Stephane Sudre wrote: Worse case: an old time machine partition has been replaced

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

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 symad...@gmail.com 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.

[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

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 dev.iceb...@gmail.com wrote: As far as I can tell, OverlayViews are not clickable. So, I'm subclassing MKMapView and overloading

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 grmrge...@gmail.com wrote: I need help with the

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 li...@warrendodge.com wrote: On Mar 29, 2011, at 1:39 AM, Stephane Sudre wrote: Do you know what the testers reporting the issue

Re: Distribution via DMG fails

2011-03-30 Thread Stephane Sudre
On Wed, Mar 30, 2011 at 4:04 AM, Gabriel Zachmann z...@tu-clausthal.de 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.

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 z...@tu-clausthal.de wrote: I don't know if this is the correct forum, so please advise if there is a more suitable one. I

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

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

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 abhityag...@gmail.com wrote: Hi All, Although this querry may seem simple to you but since i

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.

[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 Foundation/Foundation.h int main (int argc, const

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

2010-10-26 Thread Stephane Sudre
On Tue, Oct 26, 2010 at 4:14 AM, Gregory Weston gwes...@mac.com 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

Re: remove icon from Dock

2010-10-13 Thread Stephane Sudre
On Tue, Oct 12, 2010 at 9:50 PM, Charles Srstka cocoa...@charlessoft.com 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

Re: Make checkbox in table view uneditable

2010-09-15 Thread Stephane Sudre
On Wed, Sep 15, 2010 at 4:29 AM, Keary Suska cocoa-...@esoteritech.com 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,

Re: i5 i7 auto graphics switching

2010-09-13 Thread Stephane Madrau
2010/9/12 cocoa-dev-requ...@lists.apple.com When it is running on the slow card, the CGDirectDisplayID will be x, and on the fast card it will be y. Is there anyway to derive x from y or y from x? I am trying to be able to uniquely identify screens even before/after a processor switch. Given

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 davedel...@me.com wrote: Hi everyone, I'm working on an iPhone app, and

[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

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 vi...@macports.org wrote: Le 2 sept. 2010 à 21:42, Stephane Sudre a écrit : This does not work as well in Mac OS X 10.6. Because when

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 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

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 tino.rac...@googlemail.com wrote: I've installed beta 3 of the new iPhone OS 4 SDK. From time to time a dialog pops up now titled

Re: Determining preferred localizations

2010-04-22 Thread Stephane Madrau
point) -- Stephane ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription

how can i do the equivalent of new email with selection service?

2010-01-28 Thread Stephane Huaulme
how can i do the equivalent of new email with selection service from a cocoa app programmatically? ___ 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

how to email a message with a NSAttributedString content

2010-01-25 Thread Stephane Huaulme
using the SBSendEmail sample code from apple, i'm able to send an email using mail.app, however i cannot figure out how to send an email containing rich text from an NSAttributedString. any suggestions? thx in advance. ___ Cocoa-dev mailing list

understanding the column of a double clicking into a table view

2009-12-17 Thread Stephane Huaulme
to handle double clicking, i bind the double click target of the table view to my app controller using a method named doubleClick. inside doubleClick, i look at what row is currently selected, and i know which one the user clicked in. how can i understand which column did the user double click

Re: contextual menu plugin example in cocoa

2009-09-02 Thread Stephane Madrau
:-) ) -- Stephane ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http

scroll view is now disabled after switching to snowleopard

2009-08-13 Thread Stephane Huaulme
this is an app with a couple of scrollviews, and after upgrading to snowleopard and recompiling, one of the 2 scrollviews is disabled. it's content is getting updated but it's grey'd out and i can't focus it. when i compare that view using the inspector with the other almost identical

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

  1   2   >