Le 7 mars 09 à 05:50, Michael Ash a écrit :
On Fri, Mar 6, 2009 at 1:38 PM, Jonathan Dann j.p.d...@gmail.com
wrote:
Hi All,
In my application I want to create an image of a document window as a
preview prior to displaying the window to the user. To obtain the
CGImage of
a displayed window
On Sat, Mar 7, 2009 at 4:20 AM, Jean-Daniel Dupas
devli...@shadowlab.org wrote:
Has this technic some benefit over locking focus on the window content view
and using - [NSBitmapImageRep initWithFocusedViewRect:] ?
Which technique? The Quartz technique will get you the full window,
including
Which technique? The Quartz technique will get you the full window,
including the titlebar. The -dataWithPDFInsideRect: gets you PDF data
instead of a bitmap. Neither of which is advantageous when you want a
bitmap image of the contents of a window.
If you are using Core Animation, you
Hello,
is possible to draw NSBezierPath inside a PDFPage? How?
Thanks
___
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
On 7 Mar 2009, at 05:50, Michael Ash wrote:
On Fri, Mar 6, 2009 at 1:38 PM, Jonathan Dann j.p.d...@gmail.com
wrote:
Hi All,
In my application I want to create an image of a document window as a
preview prior to displaying the window to the user. To obtain the
CGImage of
a displayed window
On 7 Mar 2009, at 10:20, Jean-Daniel Dupas wrote:
Le 7 mars 09 à 05:50, Michael Ash a écrit :
On Fri, Mar 6, 2009 at 1:38 PM, Jonathan Dann j.p.d...@gmail.com
wrote:
Hi All,
In my application I want to create an image of a document window
as a
preview prior to displaying the window to
On 7 Mar 2009, at 11:14, Paul Sanders wrote:
Which technique? The Quartz technique will get you the full window,
including the titlebar. The -dataWithPDFInsideRect: gets you PDF
data
instead of a bitmap. Neither of which is advantageous when you
want a
bitmap image of the contents of a
On Mar 7, 2009, at 2:18 PM, Aaron Wallis wrote:
The property was assigned as:
@property (retain) id delegate;
when I walk through the code (and log pretty much everything out)
I get the following:
- (void)processString:(NSString *)tString withDelegate:(id)tDelegate {
NSLog(@1. %@,
On 7 Mar 2009, at 11:00, Kyle Sluder wrote:
On Sat, Mar 7, 2009 at 4:20 AM, Jean-Daniel Dupas
devli...@shadowlab.org wrote:
Has this technic some benefit over locking focus on the window
content view
and using - [NSBitmapImageRep initWithFocusedViewRect:] ?
Which technique? The Quartz
Le 7 mars 09 à 12:11, Jonathan Dann a écrit :
On 7 Mar 2009, at 10:20, Jean-Daniel Dupas wrote:
Le 7 mars 09 à 05:50, Michael Ash a écrit :
On Fri, Mar 6, 2009 at 1:38 PM, Jonathan Dann j.p.d...@gmail.com
wrote:
Hi All,
In my application I want to create an image of a document window
On 7 Mar 2009, at 12:20, Jean-Daniel Dupas wrote:
Le 7 mars 09 à 12:11, Jonathan Dann a écrit :
On 7 Mar 2009, at 10:20, Jean-Daniel Dupas wrote:
Le 7 mars 09 à 05:50, Michael Ash a écrit :
On Fri, Mar 6, 2009 at 1:38 PM, Jonathan Dann
j.p.d...@gmail.com wrote:
Hi All,
In my
Le 7 mars 09 à 12:25, Jonathan Dann a écrit :
On 7 Mar 2009, at 12:20, Jean-Daniel Dupas wrote:
Le 7 mars 09 à 12:11, Jonathan Dann a écrit :
On 7 Mar 2009, at 10:20, Jean-Daniel Dupas wrote:
Le 7 mars 09 à 05:50, Michael Ash a écrit :
On Fri, Mar 6, 2009 at 1:38 PM, Jonathan Dann
On 7 Mar 2009, at 03:31:44, Graham Cox wrote:
I'm implementing a plug-in scheme based on Rainer Brockerhoff's
design at http://cocoadevcentral.com/articles/68.php
So far it's working fine, but I decided I wanted to use a particular
extension for my plug-in files. When I do that, the
On 07/03/2009, at 11:13 PM, Benjamin Dobson wrote:
Set Force Package Info Generation under the build settings to true.
Thanks - that did it. Just didn't make the connection between how this
is labelled and what it does...
--Graham
___
Hi all,
Occasionally, and unpredictably, my app will hang at a
semaphore_wait_signal_trap, see the partial stack trace below. What's
happening is that I override NSButtonCell so I can draw a checkbox on
a parent row, and not on child rows. My NSButtonCell override, called
Hi all,
Sometimes this happens in my app, for no apparent reason. Is there an
explanation, is there something wrong with my code, or do we have to
live with it? I just have a standard window with a standard
NSProgressIndicator in it.
- (void)showLoadingProgress
{
[progressBar
The NSDocument reference manual states: 'If you need to perform
initializations that must be done when creating new documents but
should not be done when opening existing documents, override
initWithType:error:.'
In my NSPersistentDocument subclass, I have overridden the
At least I found my error with this one:
Today I tested a bit with catalogNameComponent and
colorNameComponent, but always received an exception. I tried to
convert the selected color into NSNamedColorSpace, but didn't get it
work. Has anybody got an example or a hint?
I mixed up
Hi,
I like it how safari prepares email contents with cmd-i. I would like
to know how to do this programatically in cocoa. Is this possible?
I want to send local html files with all linked images as html email.
Thanks,
Ferhat
___
Cocoa-dev
On Sat, Mar 7, 2009 at 7:00 AM, Jean-Daniel Dupas
devli...@shadowlab.org wrote:
Just for the record, NSBitmapDataRef has a - CGImage method which returns a
CGImageRef.
Only on Leopard, unfortunately.
--Kyle Sluder
___
Cocoa-dev mailing list
On Thu, Mar 5, 2009 at 03:26, Rick Mann rm...@latencyzero.com wrote:
Can you guys suggest something I can use to submit crash reports to my own
servers (and perhaps to suppress Apple's CrashReporter)?
TIA,
--
Rick
This might be worth a look:
http://smartcrashreports.com/
Hello -
I am painting my iPhone scrollable view which is nested in a parent
view.
I had originally been looping through and creating about a 1000
UIImageViews.
This worked fine and dandy on the simulator but in real life, I think
it is killing my little iPhone App.
So will just drawing
I am creating a visual indicator.
There can be approximately up to 400 rows.
Each row can have up to 24 little images.
While in my instruments it never seems to get above 7MB on my device
when a person selects enough parameters to actually display the rows
it will eventually show up... say after
On Mar 7, 2009, at 10:22 AM, James Cicenia wrote:
I am creating a visual indicator.
There can be approximately up to 400 rows.
Each row can have up to 24 little images.
I imagine those images are pretty small if you can fit 24 of them
across the screen...
If the images are always
Unfortunately they are not sequential.
They are a graphical calendar with two images per month. They can
exist, they can be yellow or they can be green.
So, unfortunately, I can't do that.
:-(
On Mar 7, 2009, at 12:28 PM, David Duncan wrote:
On Mar 7, 2009, at 10:22 AM, James Cicenia
I have a model class with multiple properties. I need to know in a
variety of places when certain of these change. Presently, the model
objects can be changed by an inspector that has bindings to the model
instances, which are managed as a collection by an NSArrayController.
So... I tried
Oops, found my problem... the model class is NSCoding compliant and so
objects can also be initialized via -initWithCoder, and I needed to
add the observer there as well.
On Mar 7, 2009, at 10:31 AM, Stuart Malin wrote:
I have a model class with multiple properties. I need to know in a
On Mar 7, 2009, at 1:31 PM, Stuart Malin wrote:
I have a model class with multiple properties. I need to know in a
variety of places when certain of these change. Presently, the model
objects can be changed by an inspector that has bindings to the
model instances, which are managed as a
On 7 Mar 2009, at 10:51, malcom wrote:
is possible to draw NSBezierPath inside a PDFPage? How?
Yes it is. How, depends on what you want to do, but you provide no
information about that. Is it for onscreen drawing only, or is it to
be incorporated into the PDF page saved/printed? Are you
Folks,
I have recently expanded the functionality of my app, and in the
process I have caused an error to occur when the app's document window
is closed or the app is quit. The error is triggered when i call
[super dealloc], and the log reports:
*** -[MyDocument respondsToSelector:]:
On Mar 7, 2009, at 11:18 AM, Keary Suska wrote:
On Mar 7, 2009, at 1:31 PM, Stuart Malin wrote:
I have a model class with multiple properties. I need to know in a
variety of places when certain of these change. Presently, the
model objects can be changed by an inspector that has bindings
On Mar 7, 2009, at 2:24 PM, Matt Crocker wrote:
Can anyone give me any pointers of how to proceed? I've tried a few
obvious things such as removing the release commands in the
dealloc method, and am loathed to start removing big chunks of code
elsewhere to see what happens...
Use
Ferhat Ayaz wrote:
I like it how safari prepares email contents with cmd-i. I would like
to know how to do this programatically in cocoa. Is this possible?
I want to send local html files with all linked images as html email.
Safari uses an undocumented Apple event API (mail/mlpg) in Mail. I
Instruments. Do this:
http://www.corbinstreehouse.com/blog/index.php/2007/10/instruments-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/
But use the instance 0x15b9d0 address. It works quite nicely.
On Mar 7, 2009, at 3:24 PM, Matt Crocker wrote:
Folks,
I have recently
In fact I need to make a small editor that allow the user to draw and
edit NSBezierPath (like in Sketch example) inside a PDFPage and then
incorporate them inside the page (in a second moment). My temp
solution is to draw an image with the pdf rapresentation and then draw
it as background for my
There's something wrong with your code, in terms of memory management. The
code fragment you posted doesn't show the whole context. You might try
running with NSZombieEnabled. You might also try reviewing Cocoa's memory
management rules.
Hi All,
I am working on an application that once started, sets up some
temporary files and so. I didn't think of it at first, but I had the
case where a friend force quitted the application, and I was left with
the app not running, and still my temporary things hanging around.
On 7 Mar 2009, at 22:17, malcom wrote:
In fact I need to make a small editor that allow the user to draw and
edit NSBezierPath (like in Sketch example) inside a PDFPage and then
incorporate them inside the page (in a second moment). My temp
solution is to draw an image with the pdf
On Mar 7, 2009, at 5:26 PM, Olivier Palliere wrote:
Hi All,
I am working on an application that once started, sets up some
temporary files and so. I didn't think of it at first, but I had the
case where a friend force quitted the application, and I was left
with the app not running, and
On Sat, Mar 7, 2009 at 5:52 PM, Aaron Wallis d2k...@gmail.com wrote:
When I step through the process in debugger it just confuses me more.
I've put a breakpoint on the self.delegate = tDelegate assignment and
stepped through each part of the process (until the error occurs).
I really, *really*
Under Tiger and before, be sure to note the following caveat:
Bug Fix in Observing A Key Path Of Self
In Mac OS 10.3 and 10.4 there was a bug in which a debugging feature
of KVO made it difficult for an object to observe one of its own
values using a multicomponent key path: right before the
On Mar 7, 2009, at 6:48 PM, Kyle Sluder wrote:
On Sat, Mar 7, 2009 at 5:52 PM, Aaron Wallis d2k...@gmail.com wrote:
When I step through the process in debugger it just confuses me more.
I've put a breakpoint on the self.delegate = tDelegate assignment
and
stepped through each part of the
I've got a preferences view that is a kin to Mail's for its accounts,
and I'd like it to behave the same.
I am using an NSArrayController to manage a table list of accounts.
There are a variety of account datum presented in NSTextFields. These
fields are bound to the controller. I am able
Am I missing something?
NSInteger d = [@43253234929732 integerValue];
NSLog(@%qi, %d, d, (d%2));
2009-03-07 17:36:32.620 TestApp[37000:10b] 6442450943, -1073743928
I'm expecting it to output 43253234929732, 0...
I'm on a 2GHz Macbook Unibody, so I'm expecting that d is a
Wire up an object as your table view's delegate and implement
-tableView:shouldSelectRow:.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
I don't know what the default compile settings are for 64-bit machines,
so I could be wrong. However, I think the default is 32-bit only,
regardless of environment. You have to set the compiler to also compile
64-bit binaries in the Info window of the project (right click on your
project name
On Sat, Mar 7, 2009 at 8:13 PM, Daniel Richman
applemaill...@mm.danielrichman.com wrote:
But your app could be running on a 32 bit only machine, so 64 bit is not a
bet to make if you want this program to work on unknown machines. Use
-doubleValue to get at least 64 bits, guaranteed.
!!!
On Mar 7, 2009, at 5:26 PM, Olivier Palliere wrote:
I am working on an application that once started, sets up some
temporary files and so. I didn't think of it at first, but I had the
case where a friend force quitted the application, and I was left
with the app not running, and still my
Thanks for correcting that. I'd forgotten that long long existed.
--Daniel Richman
Kyle Sluder wrote:
On Sat, Mar 7, 2009 at 8:13 PM, Daniel Richman
applemaill...@mm.danielrichman.com wrote:
But your app could be running on a 32 bit only machine, so 64 bit is not a
bet to make if you want
This is a test app that I'm using to test a concept (nothing to ever
release), and I came across this oddity.
As for the build settings, it was set for 32 bit architecture. I set
it to 32/64 bit, and also Native Architecture of Build Machine, but
after cleaning and building again, I get
Exactly what I need!
Many thanks for responding.
Can't believe I was acting as if having the array controller and a
delegate were mutually exclusive.
On Mar 7, 2009, at 3:12 PM, Kyle Sluder wrote:
Wire up an object as your table view's delegate and implement
-tableView:shouldSelectRow:.
Dave DeLong (davedel...@me.com) on 2009-03-07 7:55 PM said:
I'm on a 2GHz Macbook Unibody, so I'm expecting that d is a 64-bit
integer.
Don't expect, measure. What does sizeof(d) give?
Also, if you want a 64 bit integer, use int64_t. NSInteger changes size
depending, as others have said.
On Mar 7, 2009, at 6:35 PM, Dave DeLong wrote:
As for the build settings, it was set for 32 bit architecture. I
set it to 32/64 bit, and also Native Architecture of Build
Machine, but after cleaning and building again, I get the same log
message.
Native architecture of build machine
Just be careful to cover all other methods by which the user can
potentially lose data. No longer is your controller responding to a
change in the selected model object, but instead to a change in the
selected row in the view. It's unfortunate, but necessary in this
circumstance.
--Kyle Sluder
On Sat, Mar 7, 2009 at 8:41 PM, Sean McBride cwat...@cam.org wrote:
Also, if you want a 64 bit integer, use int64_t. NSInteger changes size
depending, as others have said.
long long matches up with the method names used in Cocoa. I find it
a lot easier to use that rather than int64_t.
--Kyle
Doh! The architecture was still set on i386.
Once I changed it to x86_64, I got the correct log message.
Looks like I still got some learning to do about how Xcode works. =)
Thanks for the help, everyone!
Dave
On Mar 7, 2009, at 6:41 PM, Nick Zitzmann wrote:
On Mar 7, 2009, at 6:35 PM,
On Mar 7, 2009, at 3:42 PM, Kyle Sluder wrote:
Just be careful to cover all other methods by which the user can
potentially lose data. No longer is your controller responding to a
change in the selected model object, but instead to a change in the
selected row in the view. It's unfortunate,
On Sat, Mar 7, 2009 at 8:55 PM, Stuart Malin stu...@zhameesha.com wrote:
Those are the only three means I am aware of (selection, window close, view
change) that can potentially lead to loss of user data. Any others?
Add and remove. You'd probably want to handle those conditions
without
On Mar 7, 2009, at 3:57 PM, Kyle Sluder wrote:
On Sat, Mar 7, 2009 at 8:55 PM, Stuart Malin stu...@zhameesha.com
wrote:
Those are the only three means I am aware of (selection, window
close, view
change) that can potentially lead to loss of user data. Any others?
Add and remove. You'd
On Mar 7, 2009, at 3:12 PM, Kyle Sluder wrote:
Wire up an object as your table view's delegate and implement
-tableView:shouldSelectRow:.
This delegate is being invoked twice. Is that ordinary and usual
behavior?
I found a post about this, made in 2005. Corbin Dunn replied that it
was
When using a 64-bit architecture, Mac OS X uses 32 bit integers, but
64 bit longs. NSInteger is defined as a long for 64, not an integer.
When running 64-bit, you need to use %ld as the format option.
Try this and see if it works any beter:
NSInteger d = [@43253234929732
On Sat, Mar 7, 2009 at 4:24 PM, Matt Crocker mattcroc...@f2s.com wrote:
Folks,
I have recently expanded the functionality of my app, and in the process I
have caused an error to occur when the app's document window is closed or
the app is quit. The error is triggered when i call [super
On Sat, Mar 7, 2009 at 8:30 PM, Ken Thomases k...@codeweavers.com wrote:
On Mar 7, 2009, at 5:26 PM, Olivier Palliere wrote:
I am working on an application that once started, sets up some temporary
files and so. I didn't think of it at first, but I had the case where a
friend force quitted
Folks;
I'm really puzzled by this one. In one window I have a TexView inside
a ScrollView - works well - user can type many lines and scroller
appear and disappear as expected.
In another window I have another TextView inside a ScrollView and
every time the user hits the 'Return' or
I'm a little bamboozled by a discovery I've just presently made.
I was intending using an NSObjectController in one of my classes to
keep a track of which visible object is selected. There are reasons
why I've chosen to have an object controller rather than just a
selectedObject ivar,
I've currently got a couple tables set up that have a variable number
of columns in them depending on the data on the back end. They're
purely displaying info and will not be used for editing it at all. At
the moment I have 1 method that creates and adds the columns to the
table and then
I'm coming in on the middle of this so I don't know if what's already
been discussed. How many -unique- images are there? If you're working
with a relatively small number of images, you could just cache a
single copy of each and then supply the correct image for a
particular cell.
If you
67 matches
Mail list logo