GRRR..
This is going to be the case will NSDraggingInfo as well, since both declare
protocols. in fact it might be more widespread than that. I’ll have to check.
I’ve fixed these two docs. You’ll see them around turkey time.
The reason? optional and required keywords were added to 10.6. however
On Thu, Oct 29, 2009 at 11:54 PM, Scott wrote:
> Thanks for the response Kyle. I will ask Rogue. This is how you send
> commands via AS
>
> tell application "Airfoil"
>
> -- Connect to Airport Express
> connect to (every speaker whose name is "Computer")
>
>
The piece of code I want to discuss is followed:
#import
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
for(int i=0;i<5000;i++)
{
NSURL *inAbsoluteURL = [[[NSURL alloc] initFileURLWithPath:@"the
path to one xml file"] a
Autoreleased objects are only autoreleased when the pool is drained. It
is more than likely that the XMLDocument initWithContentsOfURL makes a
lot of temporary objects which end up on the autorelease pool but they
won't actually be released until the end of your loop.
Put another pool alloc at
On 30.10.2009, at 08:36, Roland King wrote:
Autoreleased objects are only autoreleased when the pool is drained.
It is more than likely that the XMLDocument initWithContentsOfURL
makes a lot of temporary objects which end up on the autorelease
pool but they won't actually be released until
thanks very much.
On Fri, Oct 30, 2009 at 3:39 PM, Kai Brüning wrote:
>
> On 30.10.2009, at 08:36, Roland King wrote:
>
> Autoreleased objects are only autoreleased when the pool is drained. It is
>> more than likely that the XMLDocument initWithContentsOfURL makes a lot of
>> temporary objects
Le 30 oct. 2009 à 07:33, Greg Parker a écrit :
On Oct 28, 2009, at 5:56 PM, Charlie Dickman wrote:
It compiles fine but the load fails with...
"__NSConcreteGlobalBlock", referenced from:
___block_holder_tmp_1.1207 in Controller.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I have read over the developer documents but am still confused. Do I
need to look at "classForScriptingClass"? I was playing around with
this but it wasn't making a lot of sense of sense in this instance. I
could understand if I was trying to send the speaker to an object but
I'm trying to run the
I think I need a copy files build phase because I plan successive versions,
each with its own bunch of specific pictures, and all of them distinct from
the basic navigation pictures and icons.
Starting each time from scratch doesn't seem to be the right iPhone
philosophy so there must be a catch s
Ok. By the way, did Graham's suggestion to do a clean and build
overcome your 'ghost in the bundle' problem?
Ron
On 30/10/2009, at 8:17 PM, Pierre Berloquin wrote:
I think I need a copy files build phase because I plan successive
versions, each with its own bunch of specific pictures, and
On Oct 28, 2009, at 8:56 PM, Charlie Dickman wrote:
It compiles fine but the load fails with...
"__NSConcreteGlobalBlock", referenced from:
___block_holder_tmp_1.1207 in Controller.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Can anyone explain this and help me with wha
On Oct 30, 2009, at 1:40 AM, Jean-Daniel Dupas wrote:
Le 30 oct. 2009 à 07:33, Greg Parker a écrit :
On Oct 28, 2009, at 5:56 PM, Charlie Dickman wrote:
It compiles fine but the load fails with...
"__NSConcreteGlobalBlock", referenced from:
___block_holder_tmp_1.1207 in Controller.o
ld: sym
Hi all,
I'm trying to programmatically add UISearchBar to my UITableView header:
- (void)viewWillAppear:(BOOL)animated {
[...]
if (!self.tableView.tableHeaderView) {
// Add the search bar
searchBar = [[UISearchBar alloc] i
does sizeWithAttributes not take into account the offset of an NSDropShadow
or italic font mask? i have a dictionary of attributes for a string, and
i'm trying to produce an image for the drag that doesn't crop the image with
these attributes.
NSSize stringSize = [string sizeWithAttributes:attrib
On Oct 30, 2009, at 10:10 AM, Chunk 1978 wrote:
does sizeWithAttributes not take into account the offset of an
NSDropShadow
or italic font mask? i have a dictionary of attributes for a
string, and
i'm trying to produce an image for the drag that doesn't crop the
image with
these attribut
On Oct 30, 2009, at 3:08 AM, Bill Cheeseman wrote:
As far as I have been able to determine, you cannot include blocks-
based code in a binary that runs on Leopard or older as well as on
Snow Leopard. Testing for Leopard and older and branching around the
blocks code does not solve the probl
PLBlocks - http://code.google.com/p/plblocks/
Dave
On Oct 30, 2009, at 9:28 AM, Jens Alfke wrote:
Also, there is an open-source implementation of blocks for 10.5,
including a compatible copy of the Clang compiler. I don't recall
the name/URL of the package but it shouldn't be hard to find
In the past I have successfully used EndianU32_NtoB to read a "long" on a
PPC machine. Now I need to read and write an array of "unsigned int" and an
array of "float". May you please tell me how to do?
Thanks
--
LL
___
Cocoa-dev mailing list (Cocoa-d
On Oct 30, 2009, at 8:56 AM, gMail.com wrote:
In the past I have successfully used EndianU32_NtoB to read a "long"
on a
PPC machine. Now I need to read and write an array of "unsigned int"
and an
array of "float". May you please tell me how to do?
Just write a 'for' loop to convert each e
On Oct 29, 2009, at 11:03 PM, Nikhil Khandelwal wrote:
I am running unit test cases to check the functionality. In this I
am checking createbackupPath of boost library. Its working well for
windows platform but not able to create backupPath for MAC. It
throws some exception
If you want h
On Oct 29, 2009, at 6:25 AM, Pierre-Olivier Latour wrote:
The entire project is available open-source under GPLv3 license
hosted on
Google Code. If you are interested in using PolKit in a non-open-
source
project and need a commercial license, please contact me.
This sounds like great code
On 10/30/09 4:56 PM, gMail.com said:
>In the past I have successfully used EndianU32_NtoB to read a "long" on a
>PPC machine. Now I need to read and write an array of "unsigned int" and an
>array of "float". May you please tell me how to do?
For floats Apple provides no API, but you can use a uni
On Oct 30, 2009, at 9:23 AM, Jens Alfke wrote:
Kyle, that was pretty rude. I would wait until the third or fourth
message to start flaming someone over their capitalization. And lots
of people don't understand which mailing list to use; we don't need
to flame them on a first offense.
Sor
On Oct 30, 2009, at 9:35 AM, "Sean McBride"
wrote:
For floats Apple provides no API, but you can use a union like this:
See CFSwappedFloat64:
http://developer.apple.com/mac/library/DOCUMENTATION/CoreFoundation/Conceptual/CFMemoryMgmt/Tasks/ByteSwapping.html#//apple_ref/doc/uid/20001155-CJB
On 29 Oct 2009, at 13:25, Pierre-Olivier Latour wrote:
The entire project is available open-source under GPLv3 license
hosted on
Google Code. If you are interested in using PolKit in a non-open-
source
project and need a commercial license, please contact me.
For more info, please follow thi
Cool. Thanks. I did the following, either when I read from the disk and when
I write to the disk
Read unsigned int in case of PPC
outValue[i] = EndianU32_NtoB(inValue[i]);
Write unsigned int in case of PPC
outValue[i] = EndianU32_BtoN(inValue[i]);
Read float in case of PPC
On 10/30/09 9:48 AM, Kyle Sluder said:
>> For floats Apple provides no API, but you can use a union like this:
>
>See CFSwappedFloat64: http://developer.apple.com/mac/library/
>DOCUMENTATION/CoreFoundation/Conceptual/CFMemoryMgmt/Tasks/
>ByteSwapping.html#//apple_ref/doc/uid/20001155-CJBEHAAG
Ah
On Oct 30, 2009, at 10:31 AM, Sean McBride wrote:
I don't get why for ints they have host<->big, host<->little,
etc. for the floats they don't. Instead they have those weird host<-
swapped. And though they take floats, they return structs.
I think this is to avoid storing swapped floats i
On 10/30/09 6:29 PM, gMail.com said:
>Cool. Thanks. I did the following, either when I read from the disk and when
>I write to the disk
>
>Read unsigned int in case of PPC
>outValue[i] = EndianU32_NtoB(inValue[i]);
>
>Write unsigned int in case of PPC
>outValue[i] = EndianU32_BtoN(
On 10/29/09 5:23 PM, Ben Trumbull said:
>> Even if I do [scene addTargetsWeak:[scene targetsWeak]] I get the error.
>>
>> Does this make any sense to anyone?
>
>The only caveat is you cannot change relationships from within -
>awakeFromFetch. This is documented:
Ben,
This is something I know an
Seems that Cocoabuilder has been down a while now. Anyone know who
runs this and how we can send a message that this is an issue?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the li
Hi everyone,
i would like to (programmatically) create a tiled image from resource
images I created. I will have to use 9 tiles to create the image I
want.
I think I read somewhere that some methods exist in Cocoa that make
this very easy, but I cannot find that reference anymore, neither
anything
Le 30 oct. 2009 à 17:25, Jens Alfke a écrit :
On Oct 29, 2009, at 6:25 AM, Pierre-Olivier Latour wrote:
The entire project is available open-source under GPLv3 license
hosted on
Google Code. If you are interested in using PolKit in a non-open-
source
project and need a commercial license,
On Oct 30, 2009, at 2:27 PM, Michael Abendroth wrote:
i would like to (programmatically) create a tiled image from resource
images I created. I will have to use 9 tiles to create the image I
want.
I think I read somewhere that some methods exist in Cocoa that make
this very easy, but I cannot fi
I am loading images from an external disk, about one image per second.
My code looks like this:
filename_ = [list_ objectAtIndex: index_];
NSLog( @"orig filename = %@", filename_ );
NSURL * url = [NSURL fileURLWithPath: filename_ isDirectory:
NO]; // this escapes any characters that
Sean, time ago I wrote and used this routine to "read" a float on a PPC.
But, as I understand, it will never work to "write" the file.
Any idea?
float ConvertEndianf(float infloat)
{
#ifdef __LITTLE_ENDIAN__
return infloat;
#else
union floatunion { unsigned char part[4]; fl
Thanks for the tip. However, the value transformer idea did not work. Even
though it ended up showing exactly the same date (the value transformer just
strips the time from the date) for each row, selecting multiple rows still
leaves us with "Multiple values" in the text field.
> > My problem
On Oct 30, 2009, at 3:01 PM, Squ Aire wrote:
Thanks for the tip. However, the value transformer idea did not
work. Even though it ended up showing exactly the same date (the
value transformer just strips the time from the date) for each row,
selecting multiple rows still leaves us with "Mul
On 2009 Oct 14, at 12:47, Jim Thomason wrote:
On Wed, Oct 14, 2009 at 2:25 PM, Ben Trumbull
wrote:
The short description is this - I have a document based CoreData
app.
I can carefully craft a set of data. I then open the document,
select
a particular record, and do a Save As. This works
On Oct 30, 2009, at 11:38 AM, Gabriel Zachmann wrote:
Now, one user has reported that, occasionally,
CGImageSourceCreateWithURL() fails -- I can tell from the log I
received.
I have never seen a case where -fileURLWithPath has failed.
Maybe the file doesn't contain valid image data. The
Through some help I was able to get this resolved. My problem was I
didn't look at SBElementArray closely enough. I thought it was only
used to get objects not pass them back to an application. Makes sense
that Scripting Bridge needs to use it's own array's now that I think
about it. I was trying t
I think I've found an inconsistency in Cocoa's handling of slashes and
colons when handling path names.
Or, maybe someone could correct me, please.
I retrieve a numer of files from a Spotlight query and store them in
an array.
Then, I print the file paths, and get something like this:
0. fi
The test app I made contains no code except for the value transformer. The
stuff that is not code is just a Core Data model with one entity called "User",
with two attributes "name" (string) and "lastLogin" (date).
The IB stuff is just one array controller bound to the app delegate's MOC with
m
My last message seems to have messed up newlines. Sorry about that. I will now
try again.
The test app I made contains no code except for the value transformer. The
stuff that is not code is just a Core Data model with one entity called "User",
with two attributes "name" (string) and "lastLogi
On 10/30/09 7:01 PM, Squ Aire said:
>Thanks for the tip. However, the value transformer idea did not work.
>Even though it ended up showing exactly the same date (the value
>transformer just strips the time from the date) for each row, selecting
>multiple rows still leaves us with "Multiple values
On Fri, Oct 30, 2009 at 12:55 PM, Scott wrote:
> Through some help I was able to get this resolved. My problem was I
> didn't look at SBElementArray closely enough. I thought it was only
> used to get objects not pass them back to an application. Makes sense
> that Scripting Bridge needs to use it
On Fri, Oct 30, 2009 at 1:26 PM, Sean McBride wrote:
> Instead of a value transformer, in your NSManagedObject subclass add a
> new method called 'timelessDate' which returns a modified version of
> your 'date' attribute. Then bind your table to 'timelessDate' instead
> of 'date'. Also use keyPa
On 10/30/09 1:34 PM, Kyle Sluder said:
>> Instead of a value transformer, in your NSManagedObject subclass add a
>> new method called 'timelessDate' which returns a modified version of
>> your 'date' attribute. Then bind your table to 'timelessDate' instead
>> of 'date'. Also use keyPathsForValu
My app uses an NSDockTilePlugin. When I update my app via Sparkle, I
want the new dock plug-in to be loaded. Unfortunately, the
SystemUIServer has already loaded the old plug-in and ignores the new
plug-in. Ditto for the Dock. There's no API that I've found to force a
dock plug-in to be rel
On Fri, Oct 30, 2009 at 1:47 PM, David Riggle wrote:
> To flush out the old plug-in I've been doing "killall SystemUIServer Dock".
> That works, but the Dock's current state is lost (minimized windows, etc.).
> Is there a friendlier way to restart the Dock so it won't lose its current
> state?
Do
On 10/30/09 1:47 PM, David Riggle said:
>My app uses an NSDockTilePlugin. When I update my app via Sparkle, I
>want the new dock plug-in to be loaded. Unfortunately, the
>SystemUIServer has already loaded the old plug-in and ignores the new
>plug-in. Ditto for the Dock. There's no API that I've fo
On Oct 30, 2009, at 1:09 PM, Gabriel Zachmann wrote:
0. file = w: slash/detail_soldiers.jpg
1. file = w: slash/lot2.jpg
2. file = 2005-03-20 11-59-13.NEF
etc.
[imagefiles_ componentsJoinedByString: @"\n"]
and print the result, and I get
joined names = w\n slash/detail_soldiers.jpg\nw\n sl
On Fri, Oct 30, 2009 at 1:09 PM, Gabriel Zachmann wrote:
> I retrieve a numer of files from a Spotlight query and store them in an
> array.
Could you post your code for this, please? It's really hard to tell
from your formatting whether you have an array of strings "0. file =…"
or if that's just
Hello,
I have been using Instruments successfully thus far, but I believe a
recent change I made to Other Link Flags is causing the symbol
information to disappear when running Leaks and CPU Sampler. I am
using a 3rd party library on the iPhone that requires the -all_load
flag to be turn
Kyle Sluder wrote
On Thu, Oct 29, 2009 at 11:54 PM, Scott wrote:
Thanks for the response Kyle. I will ask Rogue. This is how you send
commands via AS
tell application "Airfoil"
-- Connect to Airport Express
connect to (every speaker whose name is "Compute
I have yet to find the reporting of this exception to be in error in
Mac OS X 10.6. It's a real exception that you should fix. I HAVE
found that Mac OS X 10.5.8 and earlier sometimes failed to report
incorrect removal (or more commonly, double-removal) of an observer.
When you suggest th
On Fri, Oct 30, 2009 at 2:35 PM, has wrote:
> No, the OP's code is passing a *single* reference that identifies *all* of
> the speaker objects that match the specified condition.
No. Here is the OP's code:
NSArray *setTheSpeaker;
setTheSpeaker = [[NSArray alloc]
initWithObjects:connectToT
Hello,
I have placed a NSScrollView, and its subview its a custom view that
contains some elements. Now I have set in the NSScrollView to
autoresize with the superview, and maintain all 4 margins, and the
subview I have set it to maintain top and left margin, when I resize
the window the
On Fri, Oct 30, 2009 at 2:53 PM, Gustavo Pizano
wrote:
> Any ideas what Im missing?
Did you perform a web search before asking the list? Searching Google
for "NSScrollView top left" (without the quotes) yielded this as the
third hit for me:
http://www.omnigroup.com/mailman/archive/macosx-dev/200
Hi all,
What is considered best practice when it comes to mutating many
properties of a managed object, specifically with regard to KVO
observers getting notified before all mutations are finished?
Let's say I have an Rectangle object. It has properties: colour, width,
height. Imagine some cont
On 30 Oct 2009, at 21:38, Kyle Sluder wrote:
On Fri, Oct 30, 2009 at 2:35 PM, has wrote:
No, the OP's code is passing a *single* reference that identifies
*all* of
the speaker objects that match the specified condition.
No. Here is the OP's code:
NSArray *setTheSpeaker;
setTheSpeak
On 31/10/2009, at 9:01 AM, Sean McBride wrote:
Hi all,
What is considered best practice when it comes to mutating many
properties of a managed object, specifically with regard to KVO
observers getting notified before all mutations are finished?
In situations like these I personally tend to av
On Oct 30, 2009, at 2:44 AM, Kyle Sluder wrote:
Anyone have any ideas why sometimes sdef fails like that? Also, is it
possible to make System Preferences open once and/or quit after
sdef and sdp
have finished with it?
Even though this isn't Xcode-users (where your sdp/sdef question would
be
On 31/10/2009, at 8:53 AM, Gustavo Pizano wrote:
Any ideas what Im missing?
The view contained by the scrollview needs to be flipped. Return YES
from an override of -isFlipped.
--Graham
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On Oct 30, 2009, at 1:46 PM, Jens Alfke wrote:
> On Oct 30, 2009, at 10:31 AM, Sean McBride wrote:
>
>> I don't get why for ints they have host<->big, host<->little,
>> etc. for the floats they don't. Instead they have those weird host<-
>>>
>> swapped. And though they take floats, they return
Tab Views produce the following error for me. "Illegal Geometry This
view is clipped by its superview."
Steps to repeat.
New Interface Builder Window.
Drag a Tab View into the window.
Click the Info button.
Note the error.
Interface Builder Version 3.1.2 (677) on Mac O
On 10/30/09 7:52 PM, Adam R. Maxwell said:
>>> I don't get why for ints they have host<->big, host<->little,
>>> etc. for the floats they don't. Instead they have those weird host<-
>>> swapped. And though they take floats, they return structs.
>>
>> I think this is to avoid storing swapped
On 10/30/09 6:05 PM, Richard Somers said:
>Tab Views produce the following error for me. "Illegal Geometry This
>view is clipped by its superview."
>
>Steps to repeat.
>
> New Interface Builder Window.
>
> Drag a Tab View into the window.
>
> Click the Info button.
>
> Note th
On 31/10/2009, at 11:05 AM, Richard Somers wrote:
I can not seem to get rid of this error. Does anyone else have this
problem?
It's not really an error, just a warning. And a very common one at
that - many perfectly reasonable layouts produce them. In my current
builds these are the onl
On Fri, Oct 30, 2009 at 10:31 AM, Sean McBride wrote:
> Ah yes, I forgot about those... But I've found them not useful in
> practice. I don't get why for ints they have host<->big, host<->little,
> etc. for the floats they don't. Instead they have those weird host<-
>>swapped. And though they t
On 10/30/09 5:20 PM, Kyle Sluder said:
>On Fri, Oct 30, 2009 at 10:31 AM, Sean McBride
>wrote:
>> Ah yes, I forgot about those... But I've found them not useful in
>> practice. I don't get why for ints they have host<->big, host<->little,
>> etc. for the floats they don't. Instead they have tho
Hi Sean,
I'd say you're going down the wrong path there.
Set each property individually. Yes, it will trigger a notification
for each one - doesn't or shouldn't matter, and unless you can show it
causes a performance problem, shouldn't be a cause for worry on that
score. It won't cause mul
anyone have some sample code for a function that does the equivalent
of HIViewFlashDirtyArea() ?
i'd like to have this i the debug version of my program to help flush
out inefficient invalidating.
or:
how do i fetch the invalid "region" of an NSWindow* ?
___
On 31/10/2009, at 12:04 PM, David M. Cotter wrote:
or:
how do i fetch the invalid "region" of an NSWindow* ?
-getRectsBeingDrawn:count:
--Graham
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moder
David M. Cotter (m...@davecotter.com) on 2009-10-30 9:04 PM said:
>anyone have some sample code for a function that does the equivalent
>of HIViewFlashDirtyArea() ?
>
>i'd like to have this i the debug version of my program to help flush
>out inefficient invalidating.
>
>or:
>
>how do i fetch the
On 30-Oct-09, at 9:17 PM, Sean McBride wrote:
David M. Cotter (m...@davecotter.com) on 2009-10-30 9:04 PM said:
anyone have some sample code for a function that does the equivalent
of HIViewFlashDirtyArea() ?
i'd like to have this i the debug version of my program to help flush
out inefficien
Hi,
How can I implement scrolling for the custom view.
Regards
symadept
___
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.app
Hi,
I wanna show another image view in the bottom of the UITableView.
Any pointers please.
Regards
symadept
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the modera
> How can I implement scrolling for the custom view.
Use an NSScrollView.
___
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
Excellent.
Thanks alot.
Regards
Symadept
On Sat, Oct 31, 2009 at 11:08 AM, Dave Keck wrote:
> > How can I implement scrolling for the custom view.
>
> Use an NSScrollView.
>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
Hi,
Is any tool used to perform load testing of cocoa based applications?
Thanks and Regards,
Rupa
CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended re
I have a custom NSFormatter attached to several NSTextFields who's only
purpose is to uppercase the characters as they are typed into a field.
The entire code for my formatter is included at the end of this message.
The |stringForObjectValue()| and |getObjectValue()| implementations are
no-ops an
I have a simple Core Data app which displays a list of entities in the
main window. To create or add new entities, I use a second modal
window with a separate managed object context so changes can be undone/
redone without interfering with the main managed object context.
The editing window
I'm building on Snow Leopard but I want to run on Leopard too. I'm calling
NSMatrix's cellFrameAtRow:column: from an NSCell, like this:
NSInteger row, col;
[(CardMatrix*)[self controlView] getRow:&row column:&col ofCell:self];
NSRect myFrame = [
(CardMatrix*)[self controlView] cellFrameAtRow:row
On 2009-10-29, at 3:13 AM, cocoa-dev-requ...@lists.apple.com wrote:
Jim Correia put me on to MyCompositeImageRep, and after a fair amount
of head scratching, I came up with the following solution.
Basically, use a subclass of NSCustomImageRep to hold the two images
to be composited or the imag
On Fri, Oct 30, 2009 at 5:37 PM, Sean McBride wrote:
> I guess 'platform-independent format' is code for big endian.
Maybe? Maybe not. It's a platform-independent format:
struct CFSwappedFloat32 {
uint32_t v;
};
That doesn't imply anything about the data actually contained therein.
--Kyle
86 matches
Mail list logo