Re: How to get all the path of an application present on the disk

2013-03-21 Thread Tim Schröder
kMDItemFSTypeCode, > kMDItemFSCreatorCode, > kMDItemFSFinderFlags, > kMDItemFSHasCustomIcon, > kMDItemFSIsExtensionHidden, > kMDItemFSIsStationery, > kMDItemFSLabel > > ~Anni > From: Tim Schröder > To: anni saini > Cc: "cocoa-dev@lists.apple.com&

Re: How to get all the path of an application present on the disk

2013-03-20 Thread Tim Schröder
I don't have the code at hand, but you could run a NSMetadataQuery and search for kMDItemCFBundleIdentifier==abc.xyz. Best, Tim Am 20.03.2013 um 13:08 schrieb anni saini : > Hi, > > I'm tried to find out all the locations where my app is present on the disk. > Is there any Cocoa API which ret

Re: Position of my item in the statusBar

2012-09-17 Thread Tim Schröder
Use something like this: NSRect frame = [[statusItem valueForKey:@"window"] frame]; Tim Am 17.09.2012 um 22:55 schrieb Erik Stainsby : > HI, > > I'm wondering if anyone can explain to me (or point me in the right > direction) as to how I can determine the current position of my stats bar >

Re: Findbar highlighting

2012-06-18 Thread Tim Schröder
Yes, this should be possible, have a look at the NSTextFinder class and especially at the NSTextFinderClient protocol. Tim Am 18.06.2012 um 20:03 schrieb ecir hana: > Hello, > > Since Lion NSTextView has this very nice feature - when searching for a > text as a user it also highlights all the

Re: Demo Version

2012-06-14 Thread Tim Schröder
.. because otherwise potential customers wouldn't find their way to your website? Tim Am 14.06.2012 um 19:41 schrieb Richard Somers: > The Mac App Store guidelines indicates that "Apps that are "beta", "demo", > "trial", or "test" versions will be rejected". > > So if potential customers nee

Re: Sandoxing: Creating a security-scoped bookmark for contents of a user-specified directory.

2012-06-13 Thread Tim Schröder
Actually, this should be quite possible by using document-scoped bookmarks. If Apple's documentation doesn't help you, you could have a look at the sample project linked here: http://stackoverflow.com/questions/10259692/app-sandbox-document-scoped-bookmark-not-resolving-not-returning-any-error/1

Re: Exclude or Negate NSComparisonPredicate

2012-05-21 Thread Tim Schröder
I use this code to search for something *not* containing someString with NSMetadataquery: predicate = [NSPredicate predicateWithFormat:@"NOT kMDItemFSName LIKE '%@'", someString]; As NSMetadataQuery only uses a subset of the NSPredicate syntax, I doubt whether using NSCompoundPredicate or some

Re: NSTableView tooltip with a view based table?

2012-02-01 Thread Tim Schröder
It actually works with view-based NSTableViews. I'm not using NSArrayController but implement - (NSView *)tableView:(NSTableView *)aTableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row where I use this code: NSTableCellView *result; result =

Re: boundingRectWithSize problem?

2012-01-26 Thread Tim Schröder
I had exactly the same problem and solved it by using the NSStringDrawingUsesDeviceMetrics option instead of NSStringDrawingDisableScreenFontSubstitution. Tim Am 25.01.2012 um 16:26 schrieb Tony Pollard: > Hi folks, > > I'm having a strange problem with NSAttributedString boundingRectWithSize

Re: Get the RSS Feed of a site

2011-12-31 Thread Tim Schröder
You should perhaps load the start page of evey lab in a webview, then parse the html (or xml) information for rss links ( .. href="..") and follow the URL contained in the href part. It should be possible to get the feed content by using NSXMLParser on this URL. Tim -- http://www.timschroeder.n

Re: Determine sandbox/entitlements at runtime?

2011-12-15 Thread Tim Schröder
Questioning [[[NSProcessInfo] processInfo] environment] should work to check whether sandboxing is enabled or not, but not for checking entitlements. As use of the Scripting Bridge will be covered by a temporary entitlement at best, better don't rely on scripting at all. Tim http://www.timsch

Re: Launching 10.5 app on 10.4

2011-10-18 Thread Tim Schröder
I don't think there is one. If the build settings are correct, OS X won't start the application but will display an error message. Tim Am 18.10.2011 um 20:37 schrieb livinginlosange...@mac.com: > What is the canonical method of alerting a user that an application is built > for a newer versi

Re: OT -Dev forums

2011-09-26 Thread Tim Schröder
Nope. Before it has been awfully slow to load since a couple of days. Am 26.09.2011 um 22:46 schrieb Development: > Have any of you been able to access the developer forums on apple since > yesterday?___ > > Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Sandboxing and file references

2011-09-20 Thread Tim Schröder
I don't think that the access rights are permanent, the only way to enable sandboxing for this kind of app would be to use a temporary exception entitlement giving your app access to the whole file system (not sure if Apple will like that for the Mac App Store, though). You can copy your applic

Re: How to subscribe to Xcode users list?

2011-09-14 Thread Tim Schröder
Have you tried http://lists.apple.com/mailman/listinfo2/xcode-users ? Tim Am 14.09.2011 um 17:10 schrieb Gerriet M. Denkmann: > Several Apple pages have links to > or > , but when I try to open these pag

Re: menu item status

2011-09-06 Thread Tim Schröder
One way which should work would be to use the Accessibility Framework (NSAccessibility Protocol, Carbon Accessibility Reference and AXUIElement.h), but you would have to make your application a trusted app or ask the user to enable accessibility access. There is a AXMenuItemMarkChar type in the

Re: Sending email with attachments

2011-02-01 Thread Tim Schröder
Lorenzo, at least with Thunderbird I have found it impossible to communicate with from a Cocoa app. Mail.app, Entourage, Outlook 2011 and Postbox should work with AppleScript which you can address from within your app with the NSAppleScript class. In principle, you just need to give an instance

Re: NSTask with unzip

2010-11-30 Thread Tim Schröder
There are several free zlib frameworks for Cocoa available, have a look at http://www.timschroeder.net/2010/07/25/the-seven-cities-of-zip/ for a comparison. -- Tim Schröder Am 28.11.2010 um 23:51 schrieb Leonardo: > Great! Thanks for the advises. > Now I have to zip and unzip a NSDat