Re: Programmatically create a file at ~/Downloads with animation

2017-10-02 Thread Nick
Thanks Jens 2017-10-03 4:49 GMT+03:00 Jens Alfke : > > > On Oct 2, 2017, at 3:51 PM, Nick wrote: > > Is it possible to create a file with an animation of a flying file into the > Downloads "Fan" directory in Dock, like Safari does when it downloads a new > file?

Programmatically create a file at ~/Downloads with animation

2017-10-02 Thread Nick
In my application I download a file, and would like to save it into Downloads. The file is downloaded using NSURLSessionDataTask (because the actual downloaded data is a base64 encoded string, and is a field inside an XML file - so I cannot download it directly into a file). Currently I simply dow

Re: Looking for a Pasteboard Peeker sample code

2017-09-24 Thread Nick
Thanks Martin 2017-09-24 13:17 GMT+03:00 devlist : > There is a newer sample code that builds with Xcode 9 that may be of > interest ... > > https://developer.apple.com/library/content/samplecode/ > ClipboardViewer/Introduction/Intro.html > > Martin > > On 23 Sep

Re: Looking for a Pasteboard Peeker sample code

2017-09-23 Thread Nick
Thanks a lot, Steve! Just a quick question - how did you manage to build it ? :) Did you use a super-old Xcode? 2017-09-23 16:02 GMT+03:00 Steve Mills : > > On Sep 23, 2017, at 07:51, Nick wrote: > > > > So I was wondering if anyone might have a pre-built version somewhere >

Re: Looking for a Pasteboard Peeker sample code

2017-09-23 Thread Nick
rary/samplecode/PasteboardPeeker/Introduction/Intro.html#//apple_ref/doc/uid/DTS1672 So I was wondering if anyone might have a pre-built version somewhere among their old tools ? 2017-09-23 15:16 GMT+03:00 Richard Charles : > > > On Sep 23, 2017, at 5:34 AM, Nick wrote: > &g

Re: Looking for a Pasteboard Peeker sample code

2017-09-23 Thread Nick
Found the code, but unfortunately it isn't compilable on modern systems... So just in case, perhaps anyone has a compiled binary of Pasteboard Peeker? :) 2017-09-23 14:34 GMT+03:00 Nick : > I am looking for an old Pasteboard Peeker Apple sample code (it's quite > old, using Carbo

Looking for a Pasteboard Peeker sample code

2017-09-23 Thread Nick
I am looking for an old Pasteboard Peeker Apple sample code (it's quite old, using Carbon/CoreFoundation APIs). It is deleted from the Apple website, but perhaps anyone still has one and could share a copy? Thank you! ___ Cocoa-dev mailing list (Cocoa-d

How Finder handles dragging of an email file from Outlook for Mac?

2017-09-22 Thread Nick
works. In Mail.app I can accept dragged files by implementing this method: - (BOOL)performDragOperation:(id )sender { [sender namesOfPromisedFilesDroppedAtDestination:[NSURL fileURLWithPath: @"/Users/Nick/Desktop/dirtosavefiles"]]; return YES; } And, whenever I drag a file, files are

Re: Inserting a button into another application's toolbar

2017-09-21 Thread Nick
Thank you for the suggestions! 2017-09-19 10:36 GMT+03:00 Alastair Houghton : > > On 19 Sep 2017, at 06:01, Jack Brindle wrote: > > > > Actually, there may be a way. It all depends on exactly where in the > menu bar you want to place the menu item. > > I think the OP wanted to inject a *toolbar*

Inserting a button into another application's toolbar

2017-09-18 Thread Nick
Hello I am developing an add-in for an application that does not officially support add-ins. Everything can be done using AppleScript, except for a method to activate this add-in, to make it work more or less seamlessly with the application, which is basically adding/injecting a toolbar icon with a

Re: NSUserDefault controller bindings - observeValueForKeyPath called twice?

2017-08-18 Thread Nick
ValueForKeyPath is called twice for some reason 2017-08-18 14:47 GMT+03:00 Alex Zavatone : > Check to see how many observers you have. > > > On Aug 18, 2017, at 4:23 AM, Nick wrote: > > > > Hello > > I am having a weird problem. > > I have a slider and

NSUserDefault controller bindings - observeValueForKeyPath called twice?

2017-08-18 Thread Nick
Hello I am having a weird problem. I have a slider and a textfield with number formatter, both bound to a NSUserDefaultsController's "values" controller key and the "someVal" property. I am also registering for notifications in the -viewDidLoad of the view controller: [[NSUserDefaults standardUse

Images in NSOutlineView disappear on dataReload

2015-11-13 Thread Nick
Hello I've encountered a strange behavior in a source list NSOutlineView. Basically, whenever I call "reloadData", an image, that was set for a currently selected row (NSTableCellView's imageview.image), disappears (I set image in outlineView:viewForTableColumn:item:). When I select the row, the im

Re: -replaceSubview transition animation that is applied to both old and new subviews

2015-10-31 Thread Nick
Answering my own question - I ended up using NSPageController. 2015-10-29 8:55 GMT+02:00 Nick : > Hi > I am trying to do a nice sliding effect (that looks to the user as > Calendar scrolling), but for pages. So basically I have several pages that > I want to present to the user one

-replaceSubview transition animation that is applied to both old and new subviews

2015-10-28 Thread Nick
Hi I am trying to do a nice sliding effect (that looks to the user as Calendar scrolling), but for pages. So basically I have several pages that I want to present to the user one by one, that he can flip with a trackpad gesture. I am using a kCATransitionFromLeft animation, when the pages are bein

Re: Smooth adjustScroll of NSScrollView

2015-10-28 Thread Nick
Thanks Jens, Charles! 2015-10-28 6:59 GMT+02:00 Charles Constant : > I don't know if this information can solve your issue directly, but I used > it to fix my issue last week. I have a custom NSScroller that had jerky > scrolling. I didn't realize that views have an ".animator()" proxy that you >

Re: Smooth adjustScroll of NSScrollView

2015-10-27 Thread Nick
of jerky scrolling I have now with adjustScroll. But I don't know how Apple did it. Can you give me some hints, if anyone faced with a similar problem? Thank you 2015-10-26 20:16 GMT+02:00 Nick : > Hi > I am developing an application that looks similar to the OS X's > Calenda

Smooth adjustScroll of NSScrollView

2015-10-26 Thread Nick
Hi I am developing an application that looks similar to the OS X's Calendar.app. One of the nice features it has is the "gravity effect" to the grid lines, when the user performs vertical scrolling - if you scroll the calendar so that half-row is clipped by the Clip View, it automatically scrolls

Re: NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-25 Thread Nick
than the window it was placed onto. So I ended up explicitly setting arrangesAllSubviews = YES in the -viewDidLoad of my NSViewController. 2015-10-25 14:14 GMT+02:00 Graham Cox : > > > On 25 Oct 2015, at 5:51 am, Nick wrote: > > > > > What am I doi

Re: viewDidLoad not called for an NSViewController's subclass (separate XIB)

2015-10-25 Thread Nick
Thanks Ken and Iowell! (I saw loadView in some example once and thought it should be called) 2015-10-25 9:12 GMT+02:00 Ken Thomases : > On Oct 25, 2015, at 1:58 AM, Nick wrote: > > > I am having a weird problem that viewDidLoad isn't called. Actually it's > &g

viewDidLoad not called for an NSViewController's subclass (separate XIB)

2015-10-25 Thread Nick
Hi. I am having a weird problem that viewDidLoad isn't called. Actually it's not a problem - I can use -awakeFromNib initializator instead, but I am wondering why viewDidLoad is not called (as it is automatically generated by xcode with a comment "place your initialization code here", when I create

Re: NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-24 Thread Nick
"arrangesAllSubviews" gets set to NO, which makes the split view not work properly. Setting it to YES explicitly in viewDidLoad (of NSViewController's subclass) seems to resolve the problem. I don't know why, though. This property appeared first in ElCap 10.11. 2015-10-24 21:51 GMT+03:00

NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-24 Thread Nick
Hi I am trying to create an NSSplitView-based application. For the sake of modularity, I would like to separate different parts of the app into several view controllers (each has its own xib). The problem is when I add a split view as a child view of NSViewController.view, then load my view contro

OS X Contacts-like UI

2015-10-21 Thread Nick
Hello I am trying to create an app, that allows editing entries similar to how Contacts on Mac does. For instance, when you click on Edit, you get all fields turn into "edit boxes" with place holders, that autoselect their contents when you click on them, and so on. I was wondering if there are any

How OS X's system-wide "look up" feature is implemented?

2015-10-16 Thread Nick
When we right-click on any selected text (or tap with three fingers), a popover view shows up, displaying info about the text selected (a dictionary definition, a wikipedia article). This function has been available on OS X since Lion. Is it possible to add my own "widget/button/tab" to this popov

Re: Detecting second launch of the "LSUIElement=1"-application

2015-09-11 Thread Nick
Thanks Jens, it does work. I should've looked at the delegate reference before asking. 2015-09-11 23:54 GMT+03:00 Jens Alfke : > > On Sep 11, 2015, at 1:12 PM, Nick wrote: > > Can I somehow detect that my application has been launched again, when it > is already runnin

Detecting second launch of the "LSUIElement=1"-application

2015-09-11 Thread Nick
Hello Can I somehow detect that my application has been launched again, when it is already running (it has an icon in NSStatusBar, but no icon in Dock)? I need to display a specific window when this happens. Thank you Nick ___ Cocoa-dev mailing list

Re: SOAP Server library/framework for Objective C

2015-09-11 Thread Nick
P server library. Then you > can hook up a handler, use NSXML to parse, and then interpret that "Simple" > SOAP schema :) > > —Jens > > On Sep 10, 2015, at 5:46 PM, Nick wrote: > > Hi Jens, > Yes, unfortunately there's client software that expects my app to work

Re: SOAP Server library/framework for Objective C

2015-09-10 Thread Nick
ve to implement a soap server myself. As an option I am considering using Delphi (it supports development OS X, and has great out of box support for WebServices), but this is a "last resort". 2015-09-11 3:34 GMT+03:00 Jens Alfke : > > On Sep 10, 2015, at 4:25 PM, Nick wrote: > > Bas

SOAP Server library/framework for Objective C

2015-09-10 Thread Nick
Hello Is there an Objective-C server library for Mac Cocoa apps? (note, not the client library - there are plenty of those). Basically I would like to have other client apps "talk" to my Mac application using SOAP. Thank you ___ Cocoa-dev mailing list

Images and NSTableView columns should scale together

2015-08-10 Thread Nick
Sorry, forgot to add a subject to my previous message :/ I am trying to make a view that displays images and a table view's columns in this way: http://rghost.net/8kmdcTnnN/image.png and http://rghost.net/6BwyMsyXy/image.png Basically, there are several image views, and a table view with the

[no subject]

2015-08-10 Thread Nick
Hello I am trying to make a view that displays images and a table view's columns in this way: http://rghost.net/8kmdcTnnN/image.png and http://rghost.net/6BwyMsyXy/image.png Basically, there are several image views, and a table view with the corresponding number of columns. Each image above the

Strange behavior of view based NSTableView with NSTextView

2015-07-18 Thread Nick
Hello I am trying to debug a problem in NSTableView but i can't figure out what is the cause. Basically I have a View-based NSTableView (the view is NSTextView), and I would like to be able to add and remove rows to the table using buttons, and also allow the user to edit the textview that is a cel

Re: Email editor view

2015-06-27 Thread Nick
Thanks Jens for the detailed answer! 2015-06-27 0:15 GMT+03:00 Jens Alfke : > > On Jun 26, 2015, at 1:45 PM, Nick wrote: > > Would experienced developers suggest is the best way to have an email > editor view, similar to what Apple Mail app has? What would be the best way > t

Email editor view

2015-06-26 Thread Nick
Hello I am working on an email client. Would experienced developers suggest is the best way to have an email editor view, similar to what Apple Mail app has? What would be the best way to give the users a similar to Apple Mail experience? I am trying to let the user edit the message, display attach

Re: [CIImageAccumulator image]: getting the BMP representation destroys the image contents

2015-02-10 Thread Nick
Hi Sandor, by copying UIImage from the accumulator you mean calling -[CIImage copy] on the accumulator's image? Yes, I tried that. It didn't work... 2015-02-08 16:43 GMT+02:00 Sandor Szatmari : > > > On Feb 6, 2015, at 18:23, Nick wrote: > > > > Hello, > &g

[CIImageAccumulator image]: getting the BMP representation destroys the image contents

2015-02-06 Thread Nick
Hello, I am playing with the CIMicroPaint sample code ( https://developer.apple.com/library/mac/samplecode/CIMicroPaint). This is basically a simple paint editor (you can draw on a view with a mouse using CoreImage). I would like to save whatever is drawn into a file. So what I do is call this, wh

IKImageBrowserView - display thumbnails of adjacent pages close to each other

2014-06-11 Thread Nick
Hello I am trying to come up with a way to display pages of a book using IKImageBrowserView. The problem I have is that IKImageBrowserView does a good job displaying a collection of separate images, each image (cell) on equal distance from others cells. What I need to do, however, is make imagebro

Re: Insetting a UIWebView while a keyboard is on screen

2014-05-28 Thread Nick Zitzmann
now when not to move the view? The AppKit has the -[NSApplication currentEvent] property, but I can't find any UIKit equivalent. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Insetting a UIWebView while a keyboard is on screen

2014-05-27 Thread Nick Zitzmann
usting the content inset won't work? Nick Zitzmann <http://www.chronosnet.com/> ___ 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-d

To find if a file is fragmented

2014-04-08 Thread Nick Rogers
Manager’s FSGetCatalogInfo() and fstat() and they don’t return this info. Any help would be greatly appreciated. Best, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: [SOLVED] progress indicator strange partial overlay

2014-02-15 Thread Nick Rogers
is there although this time grey. So still relying on the dirtyRect checking way to solve this. Best, Nick On 16-Feb-2014, at 11:39 am, Graham Cox wrote: > > On 16 Feb 2014, at 4:36 am, Nick Rogers wrote: > >> The about last 30% of the length of the progress bar was

Fwd: [SOLVED] progress indicator strange partial overlay

2014-02-15 Thread Nick Rogers
Hi, The about last 30% of the length of the progress bar was passed onto the drawRect: of the blue background custom view as dirtyRect. Wonder what causes it. Solved it by checking dirtyRect and then skipping drawing [NSRectFill(); etc]. Wishes, Nick Begin forwarded message: > From: N

Fwd: progress indicator strange partial overlay

2014-02-15 Thread Nick Rogers
Hi, Here’s the image URL: http://i60.tinypic.com/209m6bd.jpg Best, Nick Begin forwarded message: > From: Nick Rogers > Subject: progress indicator strange partial overlay > Date: 15 February 2014 10:41:08 pm IST > To: Cocoa-dev List List > > Hi, > > I have a blue

progress indicator strange partial overlay

2014-02-15 Thread Nick Rogers
wrapper remains even when double value of bar enters it and bar progresses thru it. Attaching a 4k png image here. Please help. Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: NSSharingService and YouTube

2014-02-12 Thread Nick Petrov
Check out the google api if you haven't https://developers.google.com/youtube/v3/ -Nick http://code-and-coffee.blogspot.com On Feb 13, 2014, at 12:40 AM, Gordon Apple wrote: > I need to upload a video file to YouTube from my Mac App. So, naturally, I > looked at NSSharingService.

Re: UITableViewCell highlight color in iOS 7 (Settings app)

2014-01-22 Thread Nick Petrov
what I use in one of my apps: UIView *selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame]; selectedBackgroundView.backgroundColor = [UIColor colorWithRed:244.0/255.0 green:244.0/255.0 blue:244.0/255.0 alpha:1]; cell.selectedBackgroundView = selectedBackg

Re: When did we get automatic synthesis of accessors in OS X?

2014-01-12 Thread Nick Petrov
OS X runtime version? > some combination of the above? > > I hope this has an easy answer, so “thanks in advance”. > > Jerry Krinock It was introduced in Xcode 4.4 Wikipedia[1] says that can be installed on "OS X Lion(10.7.4 and 10.7.5) and OS X Mountain Lion(10.8.x) -

Customizing UIActivityViewController

2013-12-26 Thread Nick Petrov
Hi, I need to change the tintColor of the cancel button in a UIActivityViewController. Any ideas? Can’t seem to find any hints on how to do this on the net. -Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Is 10.9 ready for production development?

2013-10-23 Thread Nick Petrov
I am waiting for the 10.9.1 update in case any major bugs show up. If you have a team of developers, it is a good idea to start at least testing your development environment right now. -Nick http://code-and-coffee.blogspot.com On Oct 23, 2013, at 10:33 PM, Don Carlile wrote: > Now t

To find if a binary is being used/running

2013-10-04 Thread Nick Rogers
xecuting. Tried open() with flags O_EXLOCK but no luck yet. Is this even possible? Best, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coco

quitting app running in status bar logs this message about some modal session

2013-09-12 Thread Nick Rogers
. Wishes, Nick ___ 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: https

custom field editor, no focus ring, no select all

2013-08-30 Thread Nick Rogers
[boxText setString:stringDisplayed]; [boxText sizeToFit]; [self.window makeFirstResponder:boxText]; [boxText drawFocusRingMask]; [boxText selectAll:self]; I have tried making boxText an ivar and allocating it in awakeFromNib, but still the same result. Please help. Th

Fwd: [SOLVED] custom field editor, no focus ring, no select all

2013-08-30 Thread Nick Rogers
Hi, Now I'm using a NSTextField instead of NSTexView. Best, Nick Begin forwarded message: > From: Nick Rogers > Subject: custom field editor, no focus ring, no select all > Date: 30 August 2013 8:23:12 PM IST > To: Cocoa-dev List List > > Hi, > > I am usin

Re: Audio in WebView stop when close NSWindow

2013-08-23 Thread Nick Zitzmann
r. I haven't tried it, but based on my previous experience with IKImageBrowserView, the WebView ought to carry on as if nothing happened… Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

editing text part in a custom NSTextFieldCell (of a NSTableView)

2013-08-17 Thread Nick Rogers
want to set the editing field's rect to a smaller one, which I guess I can do by over-riding the method, - (void)editWithFrame:(NSRect)aRect inView:(NSView*)controlView editor:(NSText*)textObj delegate:(id)anObject event:(NSEvent*)theEvent Any suggestions? Wishes, Nick _

Thread safety, some basic questions about accessing mutable objects across threads

2013-08-06 Thread Nick Rogers
modifying it. Can I simply add an object like, [array addObject:obj]; or if this is wrong how to achieve the same? The object to add is mostly NSString or NSNumber or a mutable dictionary of NSString and NSNumber. Please help. Best, Nick ___ Cocoa-dev

drawing outside the dirtyRect (of a NSView sub class) and overlapping NSTableView

2013-08-04 Thread Nick Rogers
table view and the table view is required to have normal behaviour even after this. Is this even possible? Thanks, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Connect to Server on LAN over WiFI

2013-07-31 Thread Nick Zitzmann
On Jul 31, 2013, at 11:35 AM, koko wrote: > I just need some direction here. > > Given a server on a LAN how do I connect to the server, i.e what iOS API do I > use? What kind of server? What protocol does the server use? What are you trying to accomplish? Nick Zi

Re: Unrecognized selector -[UIFont fontName]?

2013-07-15 Thread Nick Zitzmann
CTFontRef are toll-free bridged, I don't see any official documentation stating that UIFont and CTFontRef are toll-free bridged, so I'm pretty sure the answer is no. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing l

NSTableView/NSOutlineView view-based group rows/items span the whole column?

2013-06-22 Thread Nick Zitzmann
one, since view-based outline views can do a few more things than cell-based views, but the existing cell-based view displays a different cell (not text cells) in each column on group item rows, so this "feature" seems like a pretty big regression if it can't be disab

Re: Staying on integrated GPU while using NSOpenGLView

2013-06-12 Thread Nick Zitzmann
y, and uses NSOpenGLPixelFormat to set up its pixel format. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: Staying on integrated GPU while using NSOpenGLView

2013-06-11 Thread Nick Zitzmann
ee above apparently prevents the discrete switch-over from happening. Since it's undocumented, the usual disclaimers apply: use it at your own risk, it may break in the future, and all that. Nick Zitzmann <http://www.chronosnet.com/> ___

Fwd: how to draw a elliptical pie chart?

2013-06-06 Thread Nick Rogers
Sorry earlier link to images required signup. Here are the new links: http://picturepush.com/public/13243485 and http://picturepush.com/public/13243495 Wishes, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

how to draw a elliptical pie chart?

2013-06-06 Thread Nick Rogers
ing a path that moves from a point on the ellipse to its centre and then back to another point on the ellipse thus forming a slice. The problem is how to fill this elliptical slice with a different colour. Please help. Nick ___ Cocoa-dev mailing list

Re: Nib image caching

2013-05-28 Thread Nick Zitzmann
On May 28, 2013, at 4:25 PM, James West wrote: > Does anyone know if nibs cache images or not inside of UIImageView? They don't. IIRC early versions of OS X allowed this, but it was taken out pretty quickly. Nick Zitzmann <http://www.chr

Re: way to update Apple Menu's Recents Items

2013-05-13 Thread Nick Rogers
awning. I have to do this. Please suggest. Wishes, Nick On 14-May-2013, at 9:30 AM, Kyle Sluder wrote: > On Mon, May 13, 2013, at 08:50 PM, Nick Rogers wrote: >> Hi, >> >> I can remove the recent items from the plist where they are stored. >> >> But when I

way to update Apple Menu's Recents Items

2013-05-13 Thread Nick Rogers
Hi, I can remove the recent items from the plist where they are stored. But when I try and update the Recent Items submenu, it doesn't. I'm getting Apple Menu by using [[NSApp mainMenu] itemAtIndex:0]. OR do I need to kill some process (which will then restart) to achieve this. Th

Re: Detect whether UIRefreshControl can be used

2013-05-08 Thread Nick Zitzmann
ne you wrote above checks to see if the method "setRefreshControl" exists inside the method's own class. I doubt that's your intention, especially since set-methods typically take an argument, and if the method takes an argument, then you woul

Re: Trouble linking libcommonCrypto in iOS 6.1

2013-05-06 Thread Nick Zitzmann
, is not part of iOS, and is deprecated on OS X (but is still widely used because it has several functions that are currently not available in CommonCrypto or the Security framework). Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev m

Re: Trouble linking libcommonCrypto in iOS 6.1

2013-05-06 Thread Nick Zitzmann
. What are you trying to accomplish? You normally do not need to link a target directly to libcommonCrypto; it is part of libSystem, the standard C library, and therefore gets automatically linked to the target unless you manually turned that off. Nick Zitzmann &

Re: delaying forced sleep after initial 30 seconds delay

2013-05-03 Thread Nick Rogers
Hi, Thanks for all the inputs. The app doesn't run any scheduled operations. So the situation would occur only when the user wants it to. Best, Nick On 03-May-2013, at 10:26 AM, Kyle Sluder wrote: > On Thu, May 2, 2013, at 09:16 PM, Nick Rogers wrote: >> Hi, >> >&

delaying forced sleep after initial 30 seconds delay

2013-05-02 Thread Nick Rogers
t the preference to delay forced sleep and then he clicks the button on the app and then closes the laptop lid, knowing fully well that it may delay sleep for a few minutes. Wishes, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: LSGetApplicationForURL() failed Error -10814

2013-04-29 Thread Nick Zitzmann
happened? The documentation for LSGetApplicationForURL() says: "If no application suitable for opening the item is found in the Launch Services database, the function will return the result code kLSApplicationNotFoundErr." kLSApplicationNotFoundError is error -10814

Re: How to create a popup panel like Safari 6 downloads?

2013-04-27 Thread Nick
Thanks Jens, that's exactly what i needed 2013/4/27 Jens Alfke > > On Apr 27, 2013, at 1:46 PM, Nick wrote: > > Are there some examples available on how to make windows (pop up panels?) > like shown these screenshots?: > > > I think you want to use NSPopover. Ther

How to create a popup panel like Safari 6 downloads?

2013-04-27 Thread Nick
Hi Are there some examples available on how to make windows (pop up panels?) like shown these screenshots?: http://rghost.net/45605051/image.png http://rghost.net/45605062/image.png It seems like a lot of modern apps are using this style.. Thank you __

Re: sandboxd deny hid-control weirdness

2013-04-25 Thread Nick Zitzmann
ned on Ink, and Ink is attempting to send HID events, which the sandbox is striking down. This is normal, and there is no workaround because Apple refuses to allow sandboxed apps to send HID events. In the past, using Ink also blocked sandboxed apps from receiving mouse-up events, thoug

Re: Clang "File not found" - in cocoa app

2013-04-20 Thread Nick Zitzmann
On Apr 18, 2013, at 1:51 AM, Christ Levesque wrote: > I used clang in my cocoa app but it doesn't find Clang/Index.h. The error is > "File not found". I linked to clang but again it doesn't find it. Anybody > knows what's the problem. What are you trying t

Re: Core Data grinds for 30 min saving SQLite. 10.6 Bug?

2013-04-15 Thread Nick Zitzmann
pdating or >> deleting (!) the object, so if you have an object that is a few hundred >> megabytes in size and the process is running in 32-bit mode, then it may not >> be able to update/delete the object. > > Thank you, Nick. These are some interesting clues. But there

Re: Core Data grinds for 30 min saving SQLite. 10.6 Bug?

2013-04-15 Thread Nick Zitzmann
es up to twice the size of the managed object when updating or deleting (!) the object, so if you have an object that is a few hundred megabytes in size and the process is running in 32-bit mode, then it may not be able to update/delete the object. Nick Zitzmann <http://www.chr

Re: multiple profiles in preferences mechanism

2013-04-13 Thread Nick Rogers
Thanks for the valuable input. Thanks, Nick On 13-Apr-2013, at 9:26 PM, Jerry Krinock wrote: > > On 2013 Apr 13, at 07:39, Nick Rogers wrote: > >> Is it possible to save the same set of preferences with different profiles >> in the system provided mechanism or do I h

multiple profiles in preferences mechanism

2013-04-13 Thread Nick Rogers
oring preferences in a plist in app bundle)? Best, Nick ___ 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/Unsubs

Re: A plugin for a sandboxed app - where to can I successfully store a temp file?

2013-02-22 Thread Nick
ls you it blocked an operation that isn't permitted. > > Cheers, > -- Uli Kusterer > "The Witnesses of TeachText are everywhere..." > http://www.zathras.de > > On Feb 22, 2013, at 11:52 AM, Nick wrote: > >> You’re not consulting/logging the error message f

Re: A plugin for a sandboxed app - where to can I successfully store a temp file?

2013-02-22 Thread Nick
il.app it works fine, on client's machine (with latest update either!) it doesn't - the .eml files do not get created, and the only error I am getting is that .eml file is not found (when I try to access the file later). 2013/2/22 Mike Abdullah > > On 22 Feb 2013, at 01:34, Ni

A plugin for a sandboxed app - where to can I successfully store a temp file?

2013-02-21 Thread Nick
Hello. I am working on a plugin for Mail.app for Mountain Lion. The problem is whenever I try to save a file, I am getting an error. Which can be explained by the fact that Mail.app is sandboxed and I am not allowed to modify files anywhere on the system. So what I do instead - is call TempDir =

Custom drawn window like Game Center

2013-02-18 Thread Nick
Hi. I'm wondering what would be the most correct way to create an app looking like Game Center (with the title drawn with white font, and custom background images for the titlebar and the client area, but to make it behave completely like a normal OS X application). Is it possible to make such an

Re: NSImage leaks open file in 10.8.2?

2013-02-13 Thread Nick Zitzmann
g behind the scenes, and this is explained in the method's documentation. If you need image files to be opened, read into memory, and then closed, then the first thing I would try is initializing them from unmapped NSData objects created using +dataWithContent

Re: NSUserNotificationCenter: Spoofing the app name/icon?

2013-02-13 Thread Nick Zitzmann
On Feb 13, 2013, at 3:25 AM, jonat...@mugginsoft.com wrote: > Is it not possible to use IPC to have the helper message the client app so > that the client does the actual posting? The client might not be running at the time. Nick Zitzmann <http://www.chron

NSUserNotificationCenter: Spoofing the app name/icon?

2013-02-12 Thread Nick Zitzmann
per app helps, and use a different icon if at all possible. How do I do that? It should be possible because I suspect CalendarAgent is spoofing Calendar.app… Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Hover button and tracking area questions

2013-01-24 Thread Nick Rogers
. Another was any ill effect of removing and adding tracking area, which I am not doing now as the button is not resizable. Thanks, Nick On 24-Jan-2013, at 7:24 PM, Markus Spoettl wrote: > On 1/24/13 12:06 PM, Nick Rogers wrote: >> The code that I pasted was going thru change. In the

Re: Hover button and tracking area questions

2013-01-24 Thread Nick Rogers
n was: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: 0x000d, 0x Any ideas? Thanks, Nick On 24-Jan-2013, at 2:18 PM, Kyle Sluder wrote: > On Jan 24, 2013, at 12:30 AM, Kyle Sluder wrote: > >> >> But considering that the API is intended t

Hover button and tracking area questions

2013-01-23 Thread Nick Rogers
used to init the trackingArea. 4. What could have caused the crash? I am using HoverButton in the nib file by setting the class to HoverButton, and not programatically. The code is non-ARC and non-GC. Any help would be greatly appreciated. Thanks, Nick

Re: can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Nick Rogers
Hi, Sorry if I caused any confusion. But I don't know if _updateTrackingAreas would or would not be called by the system for its own UI display mechanism even if I don't use it in code. Best, Nick ___ Cocoa-dev mailing list

Re: can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Nick Rogers
Hi, Thanks for the replies. Sorry I didn't provide enough info in the beginning. Here it is. On 24-Jan-2013, at 9:55 AM, Graham Cox wrote: > > On 24/01/2013, at 1:30 PM, Nick Rogers wrote: > >> Hi, >> >> I was updating a few textfields from my sheetDidEnd

can update the UI from sheetDidEnd:…. ?

2013-01-23 Thread Nick Rogers
Hi, I was updating a few textfields from my sheetDidEnd:…. method. Just wondering if that was causing the crash (UI related error in main thread). Thanks, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: NSCalendar week-of-year calculations and week 1

2013-01-04 Thread Nick Zitzmann
gt;> there may be two week 1s in a year. > > Short answer: Use NSYearForWeekOfYearCalendarUnit. Thanks, Kyle and Greg. That was what I needed. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.

NSCalendar week-of-year calculations and week 1

2013-01-04 Thread Nick Zitzmann
y) in the components, and I got the same incorrect results. Nick Zitzmann <http://www.chronosnet.com/> ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: how to make a task less cpu intensive

2012-12-31 Thread Nick Rogers
t have any rough estimates on how much memory i'd need to malloc, some times it can be less than 1 MB and grow to 1GB. Also the tree is incremental, so can not predict its final size. Thanks again, Nick On 29-Dec-2012, at 12:53 AM, Scott Ribe wrote: > On Dec 28, 2012, at 10:40 AM,

how to make a task less cpu intensive

2012-12-28 Thread Nick Rogers
erent code is executed in the background. Any ideas on how to make tree freeing process less intensive? Thanks, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Font names

2012-12-21 Thread Nick Zitzmann
or something similar. Nick Zitzmann <http://www.chronosnet.com/> ___ 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)li

  1   2   3   4   5   6   7   8   9   10   >