On Fri, Jul 8, 2011 at 1:53 AM, Rick C. wrote:
> Well I am using iconForFile if I remember correctly. Since I'm on the iPhone
> let me double-check everything you all have suggested and I'll post back.
> Thanks again!
Didn't know you were on iOS. But yes, I would expect iconForFile: to
modify
> Kind of surprised to discover that NSMapTable doesn’t exist on iOS (even the
> older procedural form of the API). I need a non-retaining dictionary — do I
> need to drop down to CFDictionary or is there some higher-level alternative?
I was surprised by this too, but found the CFDictionary alte
On Jul 7, 2011, at 5:59 PM, koko wrote:
> So, is there really an NSApplicationWillFinishLaunchingNotification or is
> Apple just pulling my leg?
Works for me. You should be able to confirm too by creating a new project.
--Andy
___
Cocoa-dev mailing
Sorry about that no I'm on Mac OS I was just sending the email from my iPhone
:-)
Ok I double-checked and I think I am getting the same results as you are. But
iconForFile does not modify the Last Opened date that shows in Finder. So the
question is how do I get that besides using the spotlig
On 8 Jul 2011, at 09:54, Rick C. wrote:
> Sorry about that no I'm on Mac OS I was just sending the email from my iPhone
> :-)
>
> Ok I double-checked and I think I am getting the same results as you are.
> But iconForFile does not modify the Last Opened date that shows in Finder.
> So the q
Hi all.
I put an MKMapView in my UI and tried to declare an IBOutlet for it,
but compilation fails with this error, in MKGeometry.h:
"'isinf' was not declared in this scope"
The line it's griping about is
UIKIT_STATIC_INLINE BOOL MKMapRectIsNull(MKMapRect rect) {
return isinf(rect.origin.x)
Hi,
my cell doesn't display newline chars. It returns YES in the wraps-override. I
tried all newline chars including the unicode one. Nothing shows. Please, can
someone help?
Thanks
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
{
[style setAlignment:NSLeft
On 8 Jul 2011, at 13:39, G S wrote:
> Hi all.
>
> I put an MKMapView in my UI and tried to declare an IBOutlet for it,
> but compilation fails with this error, in MKGeometry.h:
>
> "'isinf' was not declared in this scope"
>
> The line it's griping about is
>
> UIKIT_STATIC_INLINE BOOL MKMapRe
> The man page for "isinf" says you will need to #include and link
> with -lm.
Thanks, but this is in Apple's code (MKGeometry.h). If I right-click
on isinf in the flagged line and jump to the definition, it finds it
in math.h.
___
Cocoa-dev mailing
I'll have to check this Chris. And actually I can disable the icon fetching
for testing purposes. The main thing is I have a list of files which I want to
show the equivalent of Last Opened date in Finder. I'll post back about this
thanks!
On Jul 8, 2011, at 5:38 PM, Chris Ridd wrote:
>
>
Never mindDoh.
Am 08.07.2011 um 15:00 schrieb Alexander Reichstadt:
___
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.ap
I have written an .app which is launched many times until the running instance
shuts down finally. The code
to start it looks like this:
NSTask* task = [[NSTask alloc] init];
[task setLaunchPath: @"/usr/bin/open"];
NSString* app = [NSString stringWithFormat:@"%s", launchApp]; // launc
On Fri, Jul 8, 2011 at 12:34 AM, Andy Lee wrote:
> On Jul 7, 2011, at 5:59 PM, koko wrote:
>> So, is there really an NSApplicationWillFinishLaunchingNotification or is
>> Apple just pulling my leg?
>
> Works for me. You should be able to confirm too by creating a new project.
Yeah it also has a
On Fri, Jul 8, 2011 at 7:13 AM, Hirendra Rathor wrote:
> The idea is to launch the application with different arguments so that it can
> do different
> stuff every time.
That isn't going to work. If the application is always running it
cannot be relaunched with new command line parameters. Also
I have a binding to the User Defaults Controller in Interface Builder in Xcode
4. The binding entries look like this.
Controller Key
values
Model Key Path
MyProperty
At the end of the MyProperty entry there is a round dark circle with an
exclamation mark. I thin
On Jul 8, 2011, at 7:13 AM, Hirendra Rathor wrote:
> I have written an .app which is launched many times until the running
> instance shuts down finally. The code
> to start it looks like this:
>
>NSTask* task = [[NSTask alloc] init];
>[task setLaunchPath: @"/usr/bin/open"];
That’s pre
On 8 Jul 2011, at 00:30, Dave Keck wrote:
>> Kind of surprised to discover that NSMapTable doesn’t exist on iOS (even the
>> older procedural form of the API). I need a non-retaining dictionary — do I
>> need to drop down to CFDictionary or is there some higher-level alternative?
>
> I was surp
Hello all,
We’re creating a custom UIColor pattern (using +[UIColor
colorWithPatternImage:]) and setting it as the background color of our table
view cell. This works great—and avoids several headaches with rounded
corners and grouped table views—except for one thing: when dragging a cell
from one
On 2011 Jul 07, at 10:38, Indragie Karunaratne wrote:
> I'm sure there's a better way to simplify this instead of using a giant
> compound AND predicate
On the contrary, I don't trust that predicateWithFormat: stuff. It's too easy
to type mistakes into the format string; in particular it temp
Well, when I said ANY, I really meant "IN termsArray", but for the
partial matches that you want your approach is fine, you'll just want
to use > & <= with character evaluations to speed this up. Check the
2010 CoreData Performance session from WWDC for more details, but it's
a standard SQL trick t
This is ridiculous. The whole project is at a standstill because of
this nonsense.
___
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 7/8/11 1:45 PM, G S wrote:
> This is ridiculous. The whole project is at a standstill because of
> this nonsense.
Just breathe...
I have used MKMapView just as you described: add the framework, import
the header, go. It works.
It seems likely
I think you need to #include to get the isinf macro.
On Jul 8, 2011, at 2:45 PM, G S wrote:
> This is ridiculous. The whole project is at a standstill because of
> this nonsense.
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> P
On 07/08/2011 5:39 AM, "G S" wrote:
>I've imported where I declare the MKMapView...
Do you mean this literally? If you put an import within an interface's
variables section, I'd be surprised you don't find lots of other errors.
Try showing your exact code.
__
On Fri, Jul 8, 2011 at 1:45 PM, G S wrote:
> This is ridiculous. The whole project is at a standstill because of
> this nonsense.
Since nobody else is appearing to have this problem, you might do best
to whittle down your configuration into the smallest possible case
that reproduces the bug.
Bu
As the OP noted, the error is in MapKit code and it is thus MapKit's
responsibility to include requisite headers.
There is some more fundamental problem at play.
(Sent from my iPhone.)
--
Conrad Shultz
www.synthetiqsolutions.com
On Jul 8, 2011, at 14:30, koko wrote:
> I think you need to #i
On Fri, Jul 8, 2011 at 4:00 PM, Conrad Shultz
wrote:
> As the OP noted, the error is in MapKit code and it is thus MapKit's
> responsibility to include requisite headers.
>
> There is some more fundamental problem at play.
Well, CoreFoundation.h includes according to my copy of the
4.2 SDK, and
First of all, thanks a lot for the responses.
I have compiled a couple of examples, and they do build. That makes
this all the more perplexing. The MapCallouts tutorial is one that I
tried.
In their file that uses MKMapView, these are the import statements:
#import
#import
Now the import state
On 07/08/2011 4:27 PM, "G S" wrote:
>First of all, thanks a lot for the responses.
>I have...
>Yep, identical.
>Now let's ...
>I link in everything they do.
>I refer to math.h ...
>I've tried ... Still no dice.
I've occasionally seen problems similar to this where the only recourse
was either a
On Jul 8, 2011, at 4:27 PM, G S wrote:
> First of all, thanks a lot for the responses.
>
> I have compiled a couple of examples, and they do build. That makes
> this all the more perplexing. The MapCallouts tutorial is one that I
> tried.
> In their file that uses MKMapView, these are the import
A search reveals that there are 29 math.h files on my system. Of
those, these don't clearly include isinf:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/c++/4.2.1/tr1
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/includ
On Fri, Jul 8, 2011 at 5:30 PM, G S wrote:
> A search reveals that there are 29 math.h files on my system. Of
> those, these don't clearly include isinf:
>
> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/c++/4.2.1/tr1
> /Developer/Platforms/iPhoneSimulator.plat
> Are you compiling this file as Objective-C++?
Yes, the implementation is an mm file.
___
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-admin
On Fri, Jul 8, 2011 at 5:45 PM, G S wrote:
>> Are you compiling this file as Objective-C++?
>
> Yes, the implementation is an mm file.
>
Okay, that's important.
Look at $SDKROOT/usr/include/c++/4.2.1/cmath and you'll see that it
#undefines isinf and declares std::isinf as a wrapper. So if you
ha
On Jul 8, 2011, at 5:51 PM, Kyle Sluder wrote:
> But it's clear this is a result of using Objective-C++, not a fault in MapKit.
You should file a bug report anyway, because MapKit's headers should be
compatible with Objective-C++.
--
Greg Parker gpar...@apple.com Runtime Wrangler
___
Here's what I have
plist file -> NSMutableArray of NSDictionary instances
NSDictionary instances all have the same keys, but different values (like a
database record)
each NSDictionary maps to another class, RBSStore, that has properties that map
to the keys of the NSDictionary's, and that has
Thanks very much for that analysis, Kyle.
This blows. All of our business logic is written in C++, which I'd
think is a common scenario (the paucity of "business" logic in the app
store notwithstanding). This problem is occurring in a UI controller
that needs to show information from a C++ object.
Awesome, thank you. For anyone else who stumbles upon this question looking for
something similar, check out Apple's DerivedProperty example:
http://developer.apple.com/library/mac/#samplecode/DerivedProperty/Introduction/Intro.html
It has examples on using the <= & > string comparison trick as
> You should file a bug report anyway, because MapKit's headers should be
> compatible with Objective-C++.
I will. The problem is that they're just going to bounce it back to
me with "please provide a project that demonstrates this", and since I
don't know where cmath is coming in, I don't know
On Jul 8, 2011, at 6:58 PM, G S wrote:
>> You should file a bug report anyway, because MapKit's headers should be
>> compatible with Objective-C++.
>
> I will. The problem is that they're just going to bounce it back to
> me with "please provide a project that demonstrates this", and since I
> d
> If you preprocess your source file, the output will show every include and
> where it came from. Not easy to interpret, but it's all there.
How do you do that?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
On Fri, Jul 8, 2011 at 7:19 PM, G S wrote:
>> If you preprocess your source file, the output will show every include and
>> where it came from. Not easy to interpret, but it's all there.
>
> How do you do that?
If you're running Xcode 3, there's a Preprocess command in the menus.
If you're runn
Good grief.
Anyway, thanks for all the help and time it took. I really appreciate it!
For now, my workaround was to paste
#define isinf(x)\
(sizeof (x) == sizeof(float )?__inline_isinff((float)(x))\
:sizeof (x) == sizeof(double)?__inline_isinfd((double)(x))\
On Jul 8, 2011, at 8:16 PM, William Squires wrote:
> Here's what I have
>
> plist file -> NSMutableArray of NSDictionary instances
Don't focus on the array object. Focus on the object which has a to-many
relationship property which is implemented via the array.
> NSDictionary instances all ha
Ok I have double-checked and the icon isn't actually the issue since I call
iconForFile: after using stat. With the original code I posted it just gives
me today's date. I can go into Finder and as an example I found a file that
has a Last Opened date of 2009 and when I run stat it gives me to
On July 7, Manfred Schwind wrote:"On OS X all objects of the nib
including the file's owner get an awakeFromNib." I don't think I ever
found the doc for that, either, but I did learn the hard way. I was
instantiating a NIB multiple times with
"InstantiateNibWithOwner:topLevelObjects", but I
46 matches
Mail list logo