Thanks for your answers but it's still not working here. Plus I don't
really see why I should use -id option since what I really want to
do is *change* one of the paths.
Back to my Foo framework:
$ otool -L Foo.framework/Foo
/Users/martin/Library/Frameworks/Foo.framework/Versions/A/Foo
You don't want to change the path, you want to change the id of your
library.
-change is intended to be used to change the path of a dependent
library in an other binary.
install_name_tool -id @executable_path../../Frameworks/Foo.framework/
Versions/A/Foo Foo.framework/Foo
But as I
Hi Keary,
Awesome, this indeed works. Thanks a lot!
And about the klunkyness, it does feel a bit that way,
but it's a lot better than not being able to do it :)
Cheers,
Eloy
On 19 jun 2008, at 21:03, Keary Suska wrote:
6/19/08 3:30 AM, also sprach [EMAIL PROTECTED]:
Just wanted to check
On Thu, Jun 19, 2008 at 5:56 PM, Laurent Cerveau [EMAIL PROTECTED] wrote:
On Jun 19, 2008, at 11:02 PM, Kyle Sluder wrote:
On Thu, Jun 19, 2008 at 4:40 PM, Martin [EMAIL PROTECTED] wrote:
And as you can see, nothing has changed and the first line has certainly
not
been replaced by bla.
On Jun 20, 2008, at 02:40, John Calhoun wrote:
On Jun 19, 2008, at 4:35 PM, Torsten Curdt wrote:
I would like to convert a PDF of any size so it fits to A4/Letter.
I would also like to reduce it to gray scale. This all without
displaying anything.
PDFKit gives you -[PDFPage
On Jun 20, 2008, at 03:35, Joel Norvell wrote:
Torsten,
John Calhoun wrote:
So, PDF Kit can I think do what you want.
I stand corrected!
But (to salvage a little face :-)
lol ...don't worry
you can't go wrong by reading the Cocoa
Drawing Guide.
Surely will read through that.
On Fri, Jun 20, 2008 at 3:12 AM, Martin [EMAIL PROTECTED] wrote:
Thanks for your answers but it's still not working here. Plus I don't really
see why I should use -id option since what I really want to do is *change*
one of the paths.
Straight from man install_name_tool:
-change old
Le 20 juin 08 à 06:09, Ken Thomases a écrit :
On Jun 19, 2008, at 10:39 PM, Jens Alfke wrote:
It might not be a bad idea to proactively disarm this vulnerability
on your own machine(s), as I just did:
sudo chmod -s System/Library/CoreServices/RemoteManagement/
ARDAgent.app/ARDAgent
On 20 Jun 2008, at 11:07, Torsten Curdt wrote:
you can't go wrong by reading the Cocoa
Drawing Guide.
Surely will read through that. Because frankly speaking I didn't
think this was Quartz related.
Well, you need to know how to generally draw in Cocoa, and you need to
know how to take
On Jun 20, 2008, at 13:09, Antonio Nunes wrote:
On 20 Jun 2008, at 11:07, Torsten Curdt wrote:
you can't go wrong by reading the Cocoa
Drawing Guide.
Surely will read through that. Because frankly speaking I didn't
think this was Quartz related.
Well, you need to know how to generally
Hi all,
I'm building a 3-pane interface and I have a NSTreeController managing
the sidebar. My actual content displayed in the main view is bound to
the selection of the tree controller. When I insert a new object
into the tree controller (I've disabled selection of inserted
objects), I
On 20 Jun 2008, at 12:47, Torsten Curdt wrote:
The scaling is done when a PDFPage needs to be drawn, so you need
to implement it in your subclass's drawWithBox: method. Use an
affine transform set up to serve your needs and apply it to the
current graphics context within the drawWithBox:
I've made a bit of progress on this, it's the right way up now, at the main
layer redraws just fine, however, sublayers disappear when I scroll (they
reappear when you resize the window, as this is presumably triggering a redraw).
I've put a test app here...
On Jun 20, 2008, at 7:47 AM, Torsten Curdt wrote:
On Jun 20, 2008, at 13:09, Antonio Nunes wrote:
On 20 Jun 2008, at 11:07, Torsten Curdt wrote:
you can't go wrong by reading the Cocoa
Drawing Guide.
Surely will read through that. Because frankly speaking I didn't
think this was
Hi,
I am not sure whether this is relevant for your problem, but it might
be useful to know that the content view of a scroll view gets a
CATiledLayer instead of a normal CALayer via [setWantsLayer:YES].
The reasoning is that the content view can be potentially large and
easily exceed
Cool. I'll probably end up doing something more like Cathy
recommended but forwardInvocation looks very powerful and useful.
Rob
On 19-Jun-08, at 7:02 PM, Graham Cox wrote:
Sometimes dispatching from First Responder to some other object is
necessary.
But there is an easy way to do it
I am considering using the SSCrypto Framework:
http://septicus.com/products/opensource/
I would embed a public key in my app and encrypt a data file on our site
that the software needs to download periodically. This is mostly to ensure
that file can not be modified or substituted except by us.
You could use the keychain for this... I think it would be the easiest
way to support your application. Either install your certificate into
the system keychain or provide a keychain file that your application
accesses exclusively.
On Jun 20, 2008, at 11:45 , Trygve Inda wrote:
I am
Hi,
I am trying to make a Cocoa application using a Quartz Composer file
as output. Everything works fine when I Simulate the app in IB, but
when I actually compile the app in Xcode, I get the following error:
__TERMINATING DUE TO UNCAUGHT EXCEPTION___
Any ideas?
-Dan Uff
Yeah, I understand that... you don't need to actually buy a
certificate for that. You can just install your certificate that you
generate yourself and then use it internally to check the integrity of
your data files or whatever else you'd like to do with it.
On Jun 20, 2008, at 12:04 ,
Hi,
I'm still very new to all the DND stuff, so here goes:
I want to be able to drag an item from my table view onto, for
instance a texteditor, and have it open the file that the item
represents.
(Also having it drop on Terminal and inserting the path to the file
would be nice, but that
Dear Trygve,
Another resource is Wade Tregaskis' Keychain Framework, which I've used. I've
just taken a cursory glance at the SSCrypto Framework and they seem to overlap.
Keychain seems more extensive, but the SSCrypto API does look very clean, as
far as it goes.
Sincerely,
Joel
Somebody knows how NSView's hitTest method works internally?
___
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.apple.com
On Fri, Jun 20, 2008 at 10:29 AM, Eugen Belyakov
[EMAIL PROTECTED] wrote:
Somebody knows how NSView's hitTest method works internally?
Yes folks inside Apple do.
-Shawn
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
On Fri, Jun 20, 2008 at 11:01 AM, Robert Douglas [EMAIL PROTECTED] wrote:
Cool. I'll probably end up doing something more like Cathy recommended but
forwardInvocation looks very powerful and useful.
I'd say that's almost an understatement. It's the core of the Cocoa
implementation of the
On Fri, Jun 20, 2008 at 1:29 PM, Eugen Belyakov
[EMAIL PROTECTED] wrote:
Somebody knows how NSView's hitTest method works internally?
This is not the question you mean to ask. The question you want to
ask is one or more of the following:
1) I need to implement X, kind of like what -hitTest
On Fri, Jun 20, 2008 at 10:56 AM, Jesse Grosjean
[EMAIL PROTECTED] wrote:
I'm having a hard time figuring out how to construct a query. The objects
involved are:
Entry
- has many tags
Tag
- name (string)
- value (string)
I want to construct searches such as:
All,
Please pardon the fact that this is in regards to a new user group
based in Phoenix, AZ. While most of you may not be local to Phoenix
and be able to attend our meetings, please feel free to join anyway,
to take part in iPhone development discussion. Perhaps your area does
not have
I am in need of help building a large control system built in Cocoa
(Xcode 3.0, ObjC 2.0, Leopard, etc).
The company has agreed to hire some contract help for 3-9 months (with
possible extensions).
Job is in Simi Valley CA - northwest of Los Angeles.
Here is the posting the company is
I need to implement custom visual component system in OpenGL. And I want to
use hitTest-like behavior ( with rotated frame rectangles and so on) to
determine component under cursor.
Could anyone with knowledge of how -hitTest works point me in the right
direction?
2008/6/20 Kyle Sluder
[EMAIL
Ok so the problem was that I missed the part about letting the table
view know it should allow external drag operations... :)
In the initialization code I added:
@applicationsTableView
.setDraggingSourceOperationMask_forLocal(OSX::NSDragOperationGeneric,
false)
And now it works great.
I want to construct searches such as:
- find all entries that have a the tag named priority with
the
value 1.
NSPredicate *tagPredicate = [NSPredicate predicateWithFormat:@ANY
tags.name = %@, tag.name];
NSPredicate *valuePredicate = [NSPredicate predicateWithFormat:@ANY
tags.value =
the iPhone SDK is still under NDA.
folks can't get together and discuss it outside of their own company,
nor can you legally do so on a third party mailing list or site.
Whether or not your intentions are good, this is violating the NDA.
On Jun 20, 2008, at 2:11 PM, Brad O'Hearne wrote:
On Jun 20, 2008, at 9:09 AM, Dan Uff wrote:
Hi,
I am trying to make a Cocoa application using a Quartz Composer file
as output. Everything works fine when I Simulate the app in IB, but
when I actually compile the app in Xcode, I get the following error:
__TERMINATING DUE TO UNCAUGHT
On Jun 20, 2008, at 5:21 AM, Adam R. Maxwell wrote:
If you want to draw in memory, I think you have to drop down to
Quartz; using PDFKit would likely be easier, but it looks like you
can only specify a Quartz filter when saving to a file?.
I think there may be some confusion with regards
On Jun 20, 2008, at 2:50 , Eugen Belyakov wrote:
I need to implement custom visual component system in OpenGL. And I
want to
use hitTest-like behavior ( with rotated frame rectangles and so on)
to
determine component under cursor.
Could anyone with knowledge of how -hitTest works point me
On Jun 20, 2008, at 4:04 , Brian Christensen wrote:
for (Component *subcomponent in [hitComponent subcomponents])
Sorry, that line should be:
for (Component *subcomponent in [match subcomponents])
{
// ...
}
/brian
smime.p7s
Description: S/MIME cryptographic signature
You are off to a good start by trying to mimic something as well conceived and
implemented as Cocoa's -hitTest: approach.
Now, because you want to re-invent the solution, you will need to know a lot
of details about graphics programming and associated mathematics. Determining
whether a
Perhaps someone else has seen this before but it makes no sense to me.
The included code is from a NSManagedObject subclass and is part of a
method to return a readonly property that is based on the value of two
attributes (amount frequency).
With the this code: (I removed irrelevant code
On 20.6.2008, at 13:47, Torsten Curdt wrote:
On Jun 20, 2008, at 13:09, Antonio Nunes wrote:
On 20 Jun 2008, at 11:07, Torsten Curdt wrote:
you can't go wrong by reading the Cocoa
Drawing Guide.
Surely will read through that. Because frankly speaking I didn't
think this was Quartz
I am using gSoap to integrate with a webservice. To enable SSL support
I had to add this flag to the process -DWITH_OPENSSL
g++ -DWITH_OPENSSL myclient.cpp stdsoap.cpp soapC.cpp soapClient.cpp -
lxnet -lsocket -lnsl -lssl -lcrypto
as described here :
On Jun 20, 2008, at 3:26 PM, Michael Swan wrote:
The documentation says that decimalNumberWithDecimal: takes an
NSDecimalNumber as its argument and tmpValueA is an NSDecimalNumber
unless I am missing something.
The documentation says:
+ (NSDecimalNumber
It seems to me that the linker can't find the OpenSSL libraries. I
already added the Security Framework to my application, this did not
make any difference.
Any suggestion what I need to configure to get this to compile.
Thanks in advance
Alex
Try adding these to the project:
On Fri, Jun 20, 2008 at 2:06 PM, Jesse Grosjean
[EMAIL PROTECTED] wrote:
I want to construct searches such as:
- find all entries that have a the tag named priority with the
value 1.
NSPredicate *tagPredicate = [NSPredicate predicateWithFormat:@ANY
tags.name = %@, tag.name];
There would be a couple of ways that you could do it... you could
place your certificate in the System keychain and then add it so that
it can be read by your application anytime. This should work okay and
if you do this during installation, the user should only have to
authenticate then.
You are correct, it doesn't work. And in trying to figure this out,
I've come to realize that I've used predicates the hard way in some
of my code. Try this instead:
NSPredicate *pred = [NSPredicate predicateWithFormat:@(SUBQUERY(
tags, $x, $x.name = %@ AND $x.value = %@)[EMAIL PROTECTED] !=
There would be a couple of ways that you could do it... you could
place your certificate in the System keychain and then add it so that
it can be read by your application anytime. This should work okay and
if you do this during installation, the user should only have to
authenticate then.
IIRC, you need to link against Quartz.
On Jun 20, 2008, at 12:46 PM, Omar Qazi wrote:
On Jun 20, 2008, at 9:09 AM, Dan Uff wrote:
Hi,
I am trying to make a Cocoa application using a Quartz Composer
file as output. Everything works fine when I Simulate the app in
IB, but when I actually
On 20 Jun '08, at 8:45 AM, Trygve Inda wrote:
I would embed a public key in my app and encrypt a data file on our
site
that the software needs to download periodically. This is mostly to
ensure
that file can not be modified or substituted except by us.
A good way to do this would be to
Is there a way to create a new bundle from in Cocoa?
What I'd like to do is have a bundle in my app's Application Support
folder to store some data generated by the user in my app. I see
plenty of methods to call to load bundles and check if a folder is a
bundle, but not creating them.
Sometimes you just need someone to tell you to read *again* the man
page and actually try to understand what the words mean ;-)
Thanks Sherm!
-Martin
On Jun 20, 2008, at 12:25 PM, Sherm Pendley wrote:
On Fri, Jun 20, 2008 at 3:12 AM, Martin [EMAIL PROTECTED]
wrote:
Thanks for your
On Jun 20, 2008, at 4:43 PM, Grant Limberg wrote:
Is there a way to create a new bundle from in Cocoa?
What I'd like to do is have a bundle in my app's Application Support
folder to store some data generated by the user in my app.
Since it's just data, I think you want a package rather
This might help:
http://www.cimgf.com/2008/05/13/from-hacker-to-microisv-custom-file-formats/
In essence you create a folder and set attributes on it as you
suspected. Though these are referred to as packages instead of
bundles. Take a look at NSFileManager. You can create a directory that
Initially I was storing the data in Core Data. In my app, the user
has the ability to attach an image to a record in Core Data.
Unfortunately, changing from a JPEG to NSData inflates a 1.5MB JPEG to
over 20 MB. In talking with some folks at the local Cocoaheads
meeting on wednesday, one
On Jun 20, 2008, at 3:28 PM, Grant Limberg wrote:
Initially I was storing the data in Core Data. In my app, the user
has the ability to attach an image to a record in Core Data.
Unfortunately, changing from a JPEG to NSData inflates a 1.5MB JPEG
to over 20 MB. In talking with some folks
On 2008 Jun, 20, at 15:28, Grant Limberg wrote:
Initially I was storing the data in Core Data. In my app, the user
has the ability to attach an image to a record in Core Data.
Unfortunately, changing from a JPEG to NSData inflates a 1.5MB JPEG
to over 20 MB.
I was planning on doing
As far as I know, you can't store a raw jpeg in Core Data directly
without turning it into an NSData object first which in turn
decompresses it.
Someone correct me if I'm wrong!
Grant Limberg
[EMAIL PROTECTED]
LinkedIn: http://www.linkedin.com/in/grantlimberg
http://www.glsoftware.net
On
On Jun 20, 2008, at 3:43 PM, Grant Limberg wrote:
As far as I know, you can't store a raw jpeg in Core Data directly
without turning it into an NSData object first which in turn
decompresses it.
It sounds quite possible that Core Data only support images in the
form of NSData. That
Currently, the user drags an existing image from their filesystem to
an NSImageView bound to an NSData attribute in the sqlite data store.
This causes the decompression from 1.5MB to 20MB. As you can see,
this isn't exactly efficient. Hence the question on package/bundle
creation. I'm
On Jun 20, 2008, at 4:00 PM, Grant Limberg wrote:
Currently, the user drags an existing image from their filesystem to
an NSImageView bound to an NSData attribute in the sqlite data
store. This causes the decompression from 1.5MB to 20MB. As you
can see, this isn't exactly efficient.
Hi all,
When creating a splash screen what condition do you use to decide when
to close your splash screen? Is there some obvious event that is
triggered that I can use? do I use [window orderOut:self] to close it?
Or is there a better way?
Thanks and Regards
Damien
On 20 Jun '08, at 4:00 PM, Grant Limberg wrote:
Currently, the user drags an existing image from their filesystem to
an NSImageView bound to an NSData attribute in the sqlite data
store. This causes the decompression from 1.5MB to 20MB.
That's an issue with NSImageView — when an image is
I'm getting a crash sometimes when performing a Redo. Stack trace is
below - seems as if it's something internal to the Undo Manager
putting together the invocation. Any thoughts on how I can investigate
this further? The Undos and Redos up until this point work fine as far
as I can see.
On 20 Jun '08, at 4:13 PM, Damien Cooke wrote:
When creating a splash screen what condition do you use to decide
when to close your splash screen? Is there some obvious event that
is triggered that I can use?
Your app delegate's -applicationDidFinishLaunching: method is probably
the
On Jun 20, 2008, at 6:27 PM, Graham Cox wrote:
I'm getting a crash sometimes when performing a Redo. Stack trace is
below - seems as if it's something internal to the Undo Manager
putting together the invocation. Any thoughts on how I can
investigate this further? The Undos and Redos up
On Fri, Jun 20, 2008 at 1:00 PM, Milen Dzhumerov [EMAIL PROTECTED] wrote:
I'm building a 3-pane interface and I have a NSTreeController managing the
sidebar. My actual content displayed in the main view is bound to the
selection of the tree controller. When I insert a new object into the tree
Thanks, this worked like a charm.
On 21 Jun 2008, at 00:02, Trygve Inda wrote:
Thanks for your quick response. Sorry to ask such a stupid question,
but how do I add those. As frameworks?
Alex
On 20 Jun 2008, at 21:45, Trygve Inda wrote:
It seems to me that the linker can't find the
This isn't a question of difference; it's about usage.
In many cases, a class has both a generator class method (one that
returns an initialized instance of the class), as well as an instance
method that initializes an existing instance, and the two are
otherwise identical in usage. For
On Fri, Jun 20, 2008 at 9:11 PM, Brian Norwood [EMAIL PROTECTED] wrote:
NSString *stuff = [NSString stringWithString:otherStuff];
or
NSString *stuff = [[NSString alloc] initWithString:otherStuff];
Those aren't equivalent statements, unless you're running under
garbage collection.
The
Hi Rick,
Thanks, it's a good suggestion, but not my case.
The problem is, I have to batch convert thousands of slideshows.
The text information is not just subtitle, I have to highlight
different portion of text depend on time.
For example, text in parenthesis need to be highlighted:
00:13
Hi All,
I've got an NSTableView that displays the data in an NSMutableArray.
(The program is a to-do list.) I just tried adding a function to allow
you to delete an item: you select the item in the table and then click
delete. My code is as follows:
- (IBAction)deleteItem:(id)sender
{
I ran into a very similar problem just today.
There is an error in your code though, unrelated to my problem, but is
probably yours:
int selectedRow = [((NSNumber *)[tableView selectedRow]) intValue];
-selectedRow simply returns an int, so all that casting to an
NSNumber* and fetching
Hi everyone,
If possible, could someone please educate me on the fundamental
mistake in my understanding of use of classes/instances/encapsulation/
messaging. I have reread the Object-Oriented Programming with
Objective-C but didn't find my answer.
I have written a test program with three
With help from mmalc's binding examples I pretty much got the bindings
on my custom view working.
I uploaded the app to:
http://kip.sateh.com/BindableGradientViewWithObjectController/
http://kip.sateh.com/BindableGradientViewWithObjectController.zip
(First link is source, second is an
Downloading your file produces an empty (zero bytes) file at least
when clicking your link and using Finder.
But one observation, in an MVC model with a pop-up button, the pop-up
button *is* the view, so I'm not sure in what way you have connected
this additional view - that sounds wrong.
On Jun 20, 2008, at 5:48 AM, Jason Wiggins wrote:
Hi everyone,
If possible, could someone please educate me on the fundamental
mistake in my understanding of use of classes/instances/
encapsulation/messaging. I have reread the Object-Oriented
Programming with Objective-C but didn't find
Thanks Henry for your response. I'll have to read that a couple times
to let it sink into my thick skull. Not sure why the DL link is zero
length. Here is a better link: http://members.optusnet.com.au/jwiggins/xcode/TestCase.zip
The reason I connected things in the way I did was to understand
Graham,
You observation is helpful. I thought that I needed to create a view
class. I also thought that with this view class it would have an
IBAction (the popup button connected to this) with a switch function,
with each case setting an ivar which would be returned to the
controller
On 21 Jun 2008, at 2:56 pm, Jason Wiggins wrote:
http://members.optusnet.com.au/jwiggins/xcode/TestCase.zip
OK, it's downloading now. However, it's an Xcode 3.1 project which
isn't compatible with Xcode 3. If you want help, you need to help *us*
to help you. Set the project to be Xcode
I know this is probably a really basic question about binding but it's sure
tripping me up right now.
I am making my way through Cocoa Programming for Mac OS X by Aaron
Hillegrass. It's an excellent book btw.
However the first time he has discusses binding is in the context of a
NSDocument arch.
You observation is helpful. I thought that I needed to create a view
class. I also thought that with this view class it would have an
IBAction (the popup button connected to this) with a switch
function, with each case setting an ivar which would be returned to
the controller class through
Apologies, I was using the defaults when I started Xcode. I have re-
uploaded with the setting changed as required.
Jason
On 21/06/2008, at 3:08 PM, Graham Cox wrote:
On 21 Jun 2008, at 2:56 pm, Jason Wiggins wrote:
http://members.optusnet.com.au/jwiggins/xcode/TestCase.zip
OK, it's
82 matches
Mail list logo