Right I think NSLayoutManager will solve my problem.
Lots of things in that class.
Thanks all!
Thomas
On 28 mars 2011, at 21:17, Aki Inoue wrote:
> The default line height used by the Cocoa Text System is based on various
> layout time configurations. So, the differences you're seeing is comin
super is relative to the class where this code is implemented (SuperClass)
which means the method lookup starts with the super class of SuperClass. This
true even when the code is called from a subclass.
You're getting the "unrecognized selector sent to instance" message because the
super class
On 24 oct. 2010, at 20:03, eveningnick eveningnick wrote:
>
>> Not great but should work.
>> Better would be to use LaunchServices, if not possible I would use
>> SMJobSubmit() (ServicesManagement framework).
> Could you please explain why? What steps do i omit, if using fork/exec?
LaunchServi
On 24 oct. 2010, at 19:56, eveningnick eveningnick wrote:
> Hello!
> What operations does the "application launcher" (or launch services?
> who's responsible for launching bundles) when i doubleclick on a
> bundle? What happens when i open a terminal and go (CD) straight
> through MyApp.app/Conten
On 24 oct. 2010, at 19:03, eveningnick eveningnick wrote:
> Hello!
> I am wondering, if NSTask can be replaced with low-level fork/exec
> calls. Looking through forums, i often met statements that launching a
> process with "fork/exec" is not an "OS X way", especially if i am
> using Cocoa frame
On 12 juil. 2010, at 14:23, Giannandrea Castaldi wrote:
> On Mon, Jul 12, 2010 at 9:43 AM, vincent habchi wrote:
>> Buongiorno :)
>>
>> Le 12 juil. 2010 à 09:34, Giannandrea Castaldi a écrit :
>>
>>> I want to use blocks to extract the min price and the max price from
>>> an NSArray of trips.
See the man pages and the Concurrency Programming Guide.
man dispatch_queue_create
man dispatch_async
http://developer.apple.com/mac/library/documentation/General/Conceptual/ConcurrencyProgrammingGuide/Introduction/Introduction.html
On Apr 29, 2010, at 6:19 PM, Paul Franz wrote:
Where can I
Just use a serial dispatch queue (or if you need to run pre-10.6 use
an NSOperationQueue with a max concurrent count set to 1) and dispatch
operations to the queue whenever you want.
The operation passed to the queue should write some data to the socket.
Thomas
On Apr 29, 2010, at 2:26 PM, P
On Apr 27, 2010, at 4:48 PM, Michael Ash wrote:
On Tue, Apr 27, 2010 at 5:53 AM, Paul Sanders
wrote:
Um, actually the menu bar is on the primary display. That's
the definition of the primary display
-- it's the one with the menu bar. Did you perhaps mean the
built-in display?
I was speaki
On Apr 26, 2010, at 3:06 PM, Brad Stone wrote:
The same code builds fine after a clean all in 3.2.1 and 3.2. In
the new version, 3.2.2, it hangs during the build.
Has anyone else experienced this? It only happens with this code.
This is a bug in Xcode.
File a bug report.
Thomas
Do you call CFRelease() on the returned host object?
If not, you should.
Regards,
Thomas
On Mar 10, 2010, at 10:56 PM, Laurent Daudelin wrote:
I didn't redefine the macro but for support of older OS X versions,
I'm currently using LLVM GCC 4.2. Maybe that's why?
-Laurent.
--
Laurent Daud
On Oct 7, 2009, at 12:22 PM, Graham Cox wrote:
the only way to know for sure is to have some knowledge/memory/a
copy of earlier documentation, which is useless for newbies (and
those of use whose memories would rather not accrete that sort of
knowledge) wanting to target < 10.6
Or you can
On Sep 7, 2009, at 2:25 PM, Markus Spoettl wrote:
On Sep 7, 2009, at 1:31 PM, Thomas Clement wrote:
Looks like an Apple bug.
http://kb2.adobe.com/cps/506/cpsid_50654.html
That doesn't seem to be the problem with that user's machine as the
files are local.
The document states &
Looks like an Apple bug.
http://kb2.adobe.com/cps/506/cpsid_50654.html
Thomas
On Sep 7, 2009, at 12:37 PM, Markus Spoettl wrote:
Hello,
I have a crash that I can't reproduce on my machines but a user
runs into it every time he uses an open panel in the app on Snow
Leopard.
Below is the
On Aug 29, 2009, at 11:13 AM, Carl Harris wrote:
Nick Zitzmann wrote:
So if you need to use libcrypto 0.9.7, you must use the Leopard or
Tiger SDKs. You can't use the Snow Leopard SDK and libcrypto unless
you want to make your software require Snow Leopard.
Isn't it generally the case that a
Another solution is to copy the libcrypto.0.9.7.dylib from the 10.5
SDK into your project directory and link against that.
It works well.
Regards,
Thomas
On Aug 29, 2009, at 2:07 AM, Steven Degutis wrote:
The solution to this is pretty simple, don't link to libcrypto.
Instead, just #import
On Dec 16, 2008, at 8:00 PM, David Duncan wrote:
On Dec 16, 2008, at 10:39 AM, Thomas Clement wrote:
That's right, I was not doing it correctly, this is now working.
Also I noticed I can call CGImageCreateWithImageInRect to create a
new CGImage which is a smaller area of the original
On Dec 15, 2008, at 10:50 PM, David Duncan wrote:
On Dec 15, 2008, at 12:47 PM, Thomas Clement wrote:
Alright but how am I suppose to draw a part of the image without
loading the whole image from disk first?
Creating a NSBitmapImageRep requires creating a NSData with the
whole image.
I
On Dec 15, 2008, at 6:39 PM, David Duncan wrote:
On Dec 13, 2008, at 6:08 AM, Thomas Clement wrote:
Looks like this is what I need.
Now I also need to read pixel values from images on disk. For the
same reason I'd like to avoid loading the entire image into memory.
Is it possible to a
On Dec 12, 2008, at 11:28 PM, David Duncan wrote:
On Dec 12, 2008, at 12:50 PM, Thomas Clement wrote:
The image was 14340 x 14173 (8-bit RGB with no alpha).
Also I got these messages in the console:
kernel[0]: (default pager): [KERNEL]: no space in available paging
segments
malloc
On Dec 12, 2008, at 9:29 PM, David Duncan wrote:
On Dec 12, 2008, at 3:51 AM, Thomas Clement wrote:
I'm using NSBitmapImageRep to build a new image by doing some pixel
processing (which unfortunately I can't do using Core Image).
Everything works great but with bigger sizes I
Hello,
I'm using NSBitmapImageRep to build a new image by doing some pixel
processing (which unfortunately I can't do using Core Image).
Everything works great but with bigger sizes I'm getting a malloc
error when calling - [NSBitmapImageRep tiffRepresentation] (error 12:
Can't allocate mem
22 matches
Mail list logo