Hi,
I am working on Mac application using Qt Cocoa. I want to track log
out/shut down event. I looked at Qt for some solution however it
seems to be more at OS level so Qt doesn't provide anything.
So I switched to NSWorkspace and registered to get Sleep
(NSWorkspaceWillSleepNotificatio
Hi there!
I'm looking for an easy way to access the main window of another
Application, thus not my own. (The key window would be fine as well,
if that is easier.)
I already searched via Google to solve this task and I found the
following solutions:
* use AppleScript to perform this task and inte
Hi,
I am working on Mac application using Qt Cocoa. I want to track log
out/shut down event. I looked at Qt for some solution however it
seems to be more at OS level so Qt doesn't provide anything.
So I switched to NSWorkspace and registered to get Sleep
(NSWorkspaceWillSleepNotification)
Dominic,
I haven't done this yet, but need to set this up in the app I'm beginning
to work on.
>From the searches I've done, perhaps the solution is NSMetadataQuery along
with a UTI. Take a look at both the SpotlightFortunes and PhotoSearch
sample code. The only drawback I can think of is that th
Back working on an old project I haven't touched in maybe over a year. Updated
the project file with the latest SDK, clean all targets and rebuilt.
Now, when I launch the app in the simulator (any version of iOS), I'm getting
this stupid error:
Class UITableViewCellContentView is implemented in
I agree with Kyle’s comment, we need source.
At the same time. View Controller is what the comment says, not view.
and still this is not really helpful until we see source.
On Apr 8, 2011, at 12:10 AM, Jeffrey Walton wrote:
> On Thu, Apr 7, 2011 at 5:55 PM, Quincey Morris
> wrote: "dismissMo
On Thu, Apr 7, 2011 at 9:10 PM, Jeffrey Walton wrote:
> Forgive my ignorance here
>
> In the view wants to show the "About Box": the view calls
> [[AboutBoxController alloc] init] and then
> presentModalViewController:animated:.
Rather than describe your code, please paste it verbatim. That's
On Thu, Apr 7, 2011 at 5:55 PM, Quincey Morris
wrote:
> On Apr 7, 2011, at 13:44, Jeffrey Walton wrote:
>
>> How do experienced folks layout their interfaces? Is Interface Builder
>> used? I seem to recall Mark and LeMarche stating that Apple recommends
>> IB. But I seem to be having chronic probl
On Apr 7, 2011, at 6:38 PM, Nick Zitzmann wrote:
>
> On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote:
>
>> I really appreciate all of your help. I gave your suggestion a shot and
>> I've run into problems. Here's what happens.
>>
>> 1. I create a new NSManagedObject in my main applicat
On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote:
> I really appreciate all of your help. I gave your suggestion a shot and I've
> run into problems. Here's what happens.
>
> 1. I create a new NSManagedObject in my main application. It gets inserted
> into the context.
> 2. I save the c
On Mar 30, 2011, at 4:09 PM, Nick Zitzmann wrote:
>
> On Mar 30, 2011, at 2:05 PM, Carter R. Harrison wrote:
>
2. What is the best way to implement it?
>>>
>>> Put your CoreData code into a framework shared by your applications. And
>>> use distributed notifications to keep the applica
On Wed, 6 Apr 2011 09:43:58 +0200, Felix Franz said:
>> I what to give my users the possibility to disable the localization of
>my app. Is there a way to tell the system (NSBundle?) to always load the
>english nibs?
>
>Just read http://homepage.mac.com/mmalc/Stepwise/Internationalization/
>it ment
On Apr 7, 2011, at 13:44, Jeffrey Walton wrote:
> How do experienced folks layout their interfaces? Is Interface Builder
> used? I seem to recall Mark and LeMarche stating that Apple recommends
> IB. But I seem to be having chronic problems with it (3.2.5 and
> 3.2.6).
The symptoms you reported s
On Mon, 4 Apr 2011 22:19:07 -0500, Stephen J. Butler said:
>> I need to accept a filename from the user. Given the user supplied
>> filename, I form a fully qualified name:
>>
>> NSString* pathName = [NSHomeDirectory(),
>> stringByAppendingPathComponent:@"Documents"];
>> NSString* fullPathName = [
On Thu, Apr 7, 2011 at 8:30 AM, Mike Abdullah wrote:
> Have you run the static analyser?
> Have you tested using the Zombies Instrument?
If it matters, the application is a Tab Bar app. One tab is set up
with disclosures. One of the disclosure buttons is "About". Once the
button is clicked, the "A
On Apr 7, 2011, at 3:23 PM, Chase Latta wrote:
> Also, I don't actually know if you can register to receive notifications when
> the user changes their language preference
You can: NSCurrentLocaleDidChangeNotification
WT
===
autoupdatingCurrentLocale
Returns the current logical locale for the c
On Thu, 31 Mar 2011 14:54:42 -0700, James Bucanek said:
>Simple question: I'm creating a CALayer to animate an
>indeterminate progress spinner, a la NSProgressIndicator, and
>I'm wondering if the ubiquitous "sweeping" spinner images are
>public resources in the OS or do I need to roll my own?
The
On Thu, Apr 7, 2011 at 8:30 AM, Mike Abdullah wrote:
> Have you run the static analyser?
Yes - "Other C Flags" are '-g3 -Wall -Wextra' (maximum GCC analysis),
and Clang is On.
> Have you tested using the Zombies Instrument?
I believe so. The executable's environment is "NSZombieEnable = YES"
and
On Apr 7, 2011, at 11:23, Chase Latta wrote:
> Assuming that your users won't be changing their language that often
> the overhead in translating the names would be very limited.
Functionally, what you suggest seems feasible, but because we're talking about
iOS, I think there are other considera
This is just a shot in the dark and I am not sure how feasible it is,
but, could you have put a property on your entity that is
non-transient and represents the current localized representation of
the string. This way you could do something like this when fetching
your values:
if (storedLanguage
On Apr 7, 2011, at 10:30, Dado Colussi wrote:
> "The SQL store, on the other hand, compiles the predicate and sort
> descriptors to SQL and evaluates the result in the database itself. This is
> done primarily for performance, but it means that evaluation happens in a
> non-Cocoa environment, a
>
> I don't see anything in the documentation for the fetch sort descriptors
> that says they have to specify a Core Data property, rather than a custom or
> derived property, although perhaps that is the problem.
"The SQL store, on the other hand, compiles the predicate and sort
descriptors to
On Apr 7, 2011, at 03:06, Ray wrote:
> Right, I tried something like this earlier, but when I use
>
> - (NSString*) localizedName {
> return NSLocalizedString (self.name, nil);
> }
>
> I get an exception:
>
> Terminating app due to uncaught exception 'NSInvalidArgumentException',
> reaso
On 7 Apr 2011, at 15:57, Dominic Dauer wrote:
>> And what's your logic for determining which app a file belongs to? To my
>> knowledge, the OS does not store this data; in the case of Library folders
>> its a convention that an app will create a folder matching its own
>> name/bundle ID.
> Yes
Hi,
Sorry for the noise. I found it.
Thanks
Georg
Am 07.04.2011 um 12:07 schrieb Georg Seifert:
> Hi,
>
> I will bring my app to the app store soon and want to implement some
> validation of the app store recipe. But how do I test this. Where to get a
> valid recipe?
>
> Best
> Georg___
And what's your logic for determining which app a file belongs to? To my
knowledge, the OS does not store this data; in the case of Library folders its
a convention that an app will create a folder matching its own name/bundle ID.
Yes. And I want to find all files which contain the name of the ap
On 7 Apr 2011, at 10:51, Dominic Dauer wrote:
> I want to find all files which belongs to specific Application. For example I
> want to get all Files which belongs to the Mail.app the result should be:
> ~/Library/Mail, ~Library/Preferences/com.apple.mail.plist, etc.
And what's your logic for
Have you run the static analyser?
Have you tested using the Zombies Instrument?
On 7 Apr 2011, at 12:15, Jeffrey Walton wrote:
> Hi All,
>
> I have a UIViewController as follows. Its just an "About Box", with a
> navigation bar and button (to cancel) and two labels.
>
> The controller was built
Hi All,
I have a UIViewController as follows. Its just an "About Box", with a
navigation bar and button (to cancel) and two labels.
The controller was built with Interface Builder. The Navigation Bar
and two labels are IBOutlets. According to IB, they are properly
connected. I did not know what t
Hi,
I will bring my app to the app store soon and want to implement some validation
of the app store recipe. But how do I test this. Where to get a valid recipe?
Best
Georg___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admi
Right, I tried something like this earlier, but when I use
- (NSString*) localizedName {
return NSLocalizedString (self.name, nil);
}
I get an exception:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'keypath localizedName not found in entity '...
But
What sort of files do you want to find? What do you want to do with them?
I want to find all files which belongs to specific Application. For example I
want to get all Files which belongs to the Mail.app the result should be:
~/Library/Mail, ~Library/Preferences/com.apple.mail.plist, etc.
- DD
O
On Apr 7, 2011, at 01:09, Ray wrote:
> When switching to the new language, the sorting in the table view is Z, Y, X,
> because it is using the original sort order of the "name" values... My
> question is: what would be a good strategy to have the whole thing sort to X,
> Y, Z in the table view
Let's say I have a Core Data entity called "TestEntity". It has a property
called "name", and I inserted three instances in the managed object, saved,
etc. The value "name" for these three instances are "A", "B", and "C"
respectively. Now I am going to fetch these managed objects using an instan
34 matches
Mail list logo