I recently switched my project from using the 10.5 Base SDK to the 10.6 SDK
(but with minimum deployment target 10.5).
My project links to libcrypto by adding -lcrypto to "Other Linker flags". This
has never previously given me a problem.
Now my app won't launch on 10.5, because /usr/lib/libcry
> However, I can't figure out how to determine if the NSNumber was initialized
> with an int or float.
NSNumber *myNumber = ...;
CFNumberIsFloatType((CFNumberRef)myNumber);
Regards,
Mani
--
http://mani.de - friendly software
iVolume - listen to music hands-free
LittleSecrets - the encrypted not
On 28/06/2010, at 7:40 PM, Graham Cox wrote:
> I recently switched my project from using the 10.5 Base SDK to the 10.6 SDK
> (but with minimum deployment target 10.5).
>
> My project links to libcrypto by adding -lcrypto to "Other Linker flags".
> This has never previously given me a problem.
On 27 Jun 2010, at 00:01, Guillaume Laurent wrote:
> Hi all,
>
> I'm having difficulties with the undo/redo mechanism and my Core Data
> objects. The problem is that I create a CoreData object (say a rectangle),
> then set some of its attributes according to some controls values (the
> positi
On Friday, 2010-06-25, at 21:18, vincent habchi wrote:
> As far as my experience goes, it was perfectly possible to update a CALayer
> from a background thread as long as you make this thread run its own runloop.
> That's what I did some time ago before reverting to the classical method for
>
Got another glitch running my app on 10.5. When I go to customize one of the
toolbars, it throws an exception because -encodeWithCoder: wasn't implemented
by NSCFType. The exception breaks the whole app because it gets stuck in the
customize toolbar mode though no sheet actually appears. On 10.6
Markus,
> "Possible" or "Allowed"? ;-)
Both, I think. If I am not mistaken, it was some Apple guy (David Duncan?) who
pointed out the role of the runloop. I therefore take for granted that, if it
is not "allowed", it must at least be "tolerated".
> It is also possible to use Cocoa UI objects fr
On Monday, 2010-06-28, at 14:43, vincent habchi wrote:
>> "Possible" or "Allowed"? ;-)
>
> Both, I think. If I am not mistaken, it was some Apple guy (David Duncan?)
> who pointed out the role of the runloop. I therefore take for granted that,
> if it is not "allowed", it must at least be "tol
On Jun 28, 2010, at 2:49 AM, Manfred Schwind wrote:
>> However, I can't figure out how to determine if the NSNumber was initialized
>> with an int or float.
>
>
> NSNumber *myNumber = ...;
> CFNumberIsFloatType((CFNumberRef)myNumber);
Again, no. This tells you if CFNumber has decided to store
On Mon, Jun 28, 2010 at 6:06 AM, Kyle Sluder wrote:
> Again, no. This tells you if CFNumber has decided to store the number as a
> float. It does *not* tell you if the number was originally created from a
> float, and analogues do not exist for other scalar types.
Tell you what, I'm gonna stop
Le 28 juin 2010 à 15:01, Markus Hanauska a écrit :
> What does work, but I doubt it is allowed, is to directly call 'display' on
> the CALayer. Apple says "you should not call this method directly", but so
> far it seems to work and has not crashed... on the other hand it might crash
> if the C
Hi,
I am animating a custom NSView using an NSAnimation. Depending on the
current progress value, the view draws a different thing in its
drawRect:
In the animation's setCurrentProgress: routine, I call [view
setNeedsDisplay:YES] to invalidate the view and cause it repaint.
However, in this way
Le 28 juin 2010 à 15:19, Kyle Sluder a écrit :
> Tell you what, I'm gonna stop posting to the list within the 10
> minutes after I first wake up. Then maybe I wouldn't have overlooked
Allow yourself at least the time to get a deep intravenous injection of dark
coffee! :)
Vincent
_
On Mon, Jun 28, 2010 at 6:09 AM, Graham Cox wrote:
>
> On 28/06/2010, at 7:40 PM, Graham Cox wrote:
>
>> I recently switched my project from using the 10.5 Base SDK to the 10.6 SDK
>> (but with minimum deployment target 10.5).
>>
>> My project links to libcrypto by adding -lcrypto to "Other Linke
On Mon, Jun 28, 2010 at 7:58 AM, Michael Ash wrote:
> If Apple broke it, they would break every single app built against the
> 10.5 SDK, so I think you're pretty safe.
Don't be so sure. 10.6 broke OmniOutliner 3 because it only shipped
with a newer version of libxslt than the one we were linking
Thanks for all the comments. I have made some changes to my workflow
and things are working better now.
"Inkscape" is a vector drawing program (which has beautifully designed
icons). My canvas size of 28x22 points was a poor choice because the
Cocoa frameworks would apply a non-uniform scal
I'm curious about the inference of a block literal's return type, but I'm
not sure what my question is. :) It all started with something like this
(reduced to a very very silly example, but it's the form that is important,
not the content):
[[NSArray array] indexesOfObjectsPassingTest:
^ (id o
tony-
thanks for the suggestion, i decided to take another approach for now,
but in the future i will probably take the "represented object" approach.
thanks,
augusto.
On Jun 25, 2010, at 6:39 PM, Tony Romano wrote:
> What I do is create an object that represents the data you need for your
> a
Hello all,
trying to clarify another newbie question. I have an app that has multiple
windows per document. I'd like to be able to open and close those windows
independently from each-other. I understand that I should use
NSWindowControllers. So what I think I should be doing is this:
- when n
Did you happen to read this link? It's clearly documented in the
section Declaring and Using a Block. HTH.
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html
-Tony
On 6/28/10 9:51 AM, Matt Neuburg wrote:
I'm curious about the inferen
On Mon, Jun 28, 2010 at 4:42 PM, Tony Romano wrote:
> Did you happen to read this link? It's clearly documented in the section
> Declaring and Using a Block. HTH.
>
> http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html
I see this part:
"If
On Mon, Jun 28, 2010 at 11:39 AM, Kyle Sluder wrote:
> On Mon, Jun 28, 2010 at 7:58 AM, Michael Ash wrote:
>> If Apple broke it, they would break every single app built against the
>> 10.5 SDK, so I think you're pretty safe.
>
> Don't be so sure. 10.6 broke OmniOutliner 3 because it only shipped
On Jun 28, 2010, at 1:45 PM, Michael Ash wrote:
> But I was unable to find any discussion of HOW you explicitly declare
> the return value of a block expression.
^ () { };
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post ad
On Jun 28, 2010, at 12:40 PM, Rainer Standke wrote:
> - when new document opens I put its window controller into an iVar so that I
> can use it as a reference when the user selects a menu to open the main
> window.
> - then I instantiate one new window controller for each additional window,
>
On Mon, Jun 28, 2010 at 4:48 PM, Bill Bumgarner wrote:
>
> On Jun 28, 2010, at 1:45 PM, Michael Ash wrote:
>
>> But I was unable to find any discussion of HOW you explicitly declare
>> the return value of a block expression.
>
> ^ () { };
Sure, but is this documented in Apple's docs? The link to
The syntax that Bill posted is not in the document. I hate the
complexities in this syntax, there is no reason that I can think of to
have multiple syntax to represent this object. Even talking to the GCD
engineers at the show, they agrees it's overly complex for no apparent
good reason.
Th
Nah -- still Cocoa related.
The syntax serves two purposes:
(1) Allow for fully specified, fully typed, definitions of blocks.
(2) Allow for blocks to be used in the über-simple "unit-of-work" role offered
by GCD where there are no arguments and no return values
Thus, the syntax full syntax is
> You can do something like this:
> UniChar characters[2];
> CFIndex length = (CFStringGetSurrogatePairForLongCharacter(0x1ABCD,
> characters) ? 2 : 1);
>
> CFStringCreateWithCharacters(NULL, characters, length);
>
> Aki
Is there anything like this in Leopard. This functions are new in Snow Le
Except that the Short Practical Guide to Blocks you linked to uses:
^ () { };
With the example of:
int (^Multiply)(int, int) = ^(int num1, int num2) {
return num1 * num2;
};
int result = Multiply(7, 4);
In addition, Session #406 at WWDC 2009 put forth block syntax in the same
format (~3:
On Jun 28, 2010, at 3:20 PM, Dave DeLong wrote:
> Except that the Short Practical Guide to Blocks you linked to uses:
>
> ^ () { };
That is a typedef form, not the block literal form.
Wee fun.
BOOL (^blocksOfFun)(int) = ^ BOOL (int x) {
return x % 3;
};
for(int i=0;
CFStringGetSurrogatePairForLongCharacter is an inline function. You can just
copy the definition to your project (with warning once your baseline become SL
and later).
Aki
On Jun 28, 2010, at 3:17 PM, Georg Seifert wrote:
>
>> You can do something like this:
>> UniChar characters[2];
>> CFI
On 29/06/2010, at 1:39 AM, Kyle Sluder wrote:
> Don't be so sure. 10.6 broke OmniOutliner 3 because it only shipped
> with a newer version of libxslt than the one we were linking with.
>
> It would be a liability for Apple to continue shipping old,
> potentially buggy or security-compromised ver
Thanks, Jens.
I have a follow-up question: When I close and re-open the window, the window is
'empty', no content is shown. It turns out that the Window Controller is
removed from the document's windowControllers. Since I hung onto it in an iVar
on the document I add it back to the doc's window
On Jun 28, 2010, at 5:52 PM, Graham Cox wrote:
> Isn't there a way to link against the "latest", whatever it is? Since there's
> a symlink for that, at least there's an access point in the file system. I
> realise that it still has to resolve the specific symbols I link against, but
> they are
On Mon, 28 Jun 2010 15:12:23 -0700, Bill Bumgarner said:
>This document does demonstrate declaring a return type, but only in the context
of a typedef or block variable declaration (and not for a block literal):
>
>http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/Blocks
/Ar
Hi,
I'm implementing a spell/grammar checker using the new 10.6 API with
grammar support.
My NSSpellServerDelegate implementation causes a crash in our
spelling/grammar checking service.
The crash occurs when we return from the delegate method
checkString:range:types:options:inSpellDocumentWithTa
First off, let me start by explaining that I am working my way through the
examples in "Head First iPhone Development."
This book was written before iOS 4.0 and one of the examples uses a
UIScrollView. Now, according to the book, after embedding the objects you will
be editing in a Scroll View
I want to list the shared local folders only if smb file sharing is enabled.
Currently I am scanning the smb port to get this information. Also Ps command
works to check if smb server is running. But the problem is that if, "File
sharing" is disabled and only "printer sharing" is enabled in syst
I am writing an NSProxy subclass to generically marshal and forward
invocations. I have read previous mailing list posts on this topic.
For reasons I cannot explain and shouldn't be happening according to my
interpretation of the documentation, [NSInvocation selector] is throwing an
NSInvalidA
I answered my own question. The documentation for [NSMethodSignature
signatureWithObjTypes:] is wrong. The first element in the type array is the
return typed, not the id or Class type, which in effect left me with an
MSMethodSignature instance containing no argument type for the selector
param
I have an NSImage which I generate by specifically creating a NSPDFImageRep and
adding that to an empty image. Later this same image rep is used to write the
image as a PDF file to disk.
An interface displays these images, either loaded from disk or made on the fly
as above. The image's native
On Mon, Jun 28, 2010 at 9:12 PM, Kyle Sluder wrote:
> On Jun 28, 2010, at 5:52 PM, Graham Cox wrote:
>
>> Isn't there a way to link against the "latest", whatever it is? Since
>> there's a symlink for that, at least there's an access point in the file
>> system. I realise that it still has to r
On 29 Jun 2010, at 3:40, Rainer Standke wrote:
> trying to clarify another newbie question. I have an app that has multiple
> windows per document. I'd like to be able to open and close those windows
> independently from each-other. I understand that I should use
> NSWindowControllers. So what
I'm not sure what's going on but I must be missing something big. I initially
had a round rect button sending a 'signIn:' message to my view delegate. I
decided to rename the 'signIn:' method to 'retailerSignIn:'. Changed the action
in IB and ran the program. Got an exception that 'signIn:' was
- Change the layout. Does it reflect in the simulator?
- Check the .app for any old nibs.
atze
Am 29.06.2010 um 07:15 schrieb Laurent Daudelin:
> I'm not sure what's going on but I must be missing something big. I initially
> had a round rect button sending a 'signIn:' message to my vi
Already checked that. I did delete the entire build folder the last time before
building again. I tried to post a follow-up with screen shots but my message is
on hold because it's 55KB and is above the 25KB limit.
The new button I put in my view didn't have any title. When I built and ran my
a
Then check the code. Does it call setTitle: on the outlet?
As a last resort open the xib in TextEdit and check for signIn:
atze
Am 29.06.2010 um 07:51 schrieb Laurent Daudelin:
> Already checked that. I did delete the entire build folder the last time
> before building again. I tried t
Greetings,
CocoaHeads is an international Mac programmer's group. Meetings are free and
open to the public. We specialize in Cocoa, but everything Mac programming
related is welcome.
Australia
Sydney - Thursday, July 1, 2010 18:30
Canada
Ottawa/Gatineau, Ontario - Thursday, July 8, 2010 19:00
>> - Change the layout. Does it reflect in the simulator?
> The new button I put in my view didn't have any title. When I built and ran
> my app, the button automagically had "Sign in" as its title!
Did you actually move the button to some different location? Try that and
report if it is at the
49 matches
Mail list logo