Hi all,
I have a general question about bindings - and I feel like there's something
I'm not quite getting.
I have a custom view class with an array property. I want to bind that array
property to a model - which in my case is an array that is in a
container/manager object. The binding is do
On Wed, May 19, 2010 at 12:05 AM, Mazen M. Abdel-Rahman
wrote:
> What is the best way for calendarView to get the items of the array that are
> going to be removed before they are actually removed?
We use NSSet KVO instead of array KVO for this exact reason. Another
option is to cache the array
Hi All,
Im writing some code to animate an image moving up the display, just a simple
thing moving from the bottom to the top.
the image is 75x75, and Im displaying that in a CALayer sized to 45x45 by
setting its .contents property to the .CGImage of the UIImage.
on the newer phones this runs
Hi all,
I have gone through the Memory Management Programming Guide document last
night, and modify my codes a little bit.
Even the program runs well without crashing, but I still have some questions
remained. I will attach some of my codes as
follow:
1. I have both Controller Object and MyModel
On 18 May 2010, at 23:58, Abhinay Kartik Reddyreddy wrote:
> static NSMutableDictionary* uniqueInstance = nil;
> // the static variable has to be initialized before you enter the
> uniqueInstance method.
Not true. Static variables are initialised to nil (or zero) automatically (it
says
On Wed, May 19, 2010 at 10:48 AM, Sai wrote:
> I have two questions:
> 1. Look at the awakeFromNib method of Controller, my output of the retain
> count to the console are
> myModel retain count: 5
> controller retain count: 17
> both number are very surprised me, why is that? I suppose they shoul
Hi Jack,
Thank you for your quick response. Your answer is very useful.
Since I have pasted some of my codes in the previous mail. I just
wonder if you have any comments on my codes, anything I can
improve for this little app? Any advice will be very appreciated.
On Wed, May 19, 2010 at 5:07 PM,
On Wed, May 19, 2010 at 11:17 AM, Sai wrote:
> Hi Jack,
> Thank you for your quick response. Your answer is very useful.
> Since I have pasted some of my codes in the previous mail. I just
> wonder if you have any comments on my codes, anything I can
> improve for this little app? Any advice will
Op 19 mei 2010, om 03:37 heeft Greg Guerin het volgende geschreven:
> appledev wrote:
>
>>arguments = [NSArray arrayWithObjects: @"-c", @"/bin/df -k| /usr/bin/grep
>> /dev/ | /usr/bin/awk '{print $1 $4 $5 $6;}'",nil];
>
>
> Your awk syntax is somewhere between quirky and wrong. Since you
On May 19, 2010, at 2:05 AM, Mazen M. Abdel-Rahman wrote:
> I have a custom view class with an array property. I want to bind that array
> property to a model - which in my case is an array that is in a
> container/manager object. The binding is done via a custom view controller
> (in it's a
Hello all.
I would want to know if I can render pdf into iPad using quartz, or I have to
use UIWebView... or whats the way to achieve this?
Any headlights are appreciate it.
thanks
Gustavo
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
P
Gustavo
You can use the CGPDF API. However be careful on memory usage (in particular
keeping the CGPDFDocument open all the time could lead to some memory issues
that could be workarounded by closing and reopening it)
Regards
laurent
On Wednesday, May 19, 2010, at 12:07PM, "Gustavo Pizano"
Hi Guys
Can I just suggest something more?
> @interface Controller : NSObject {
>IBOutlet UIButton *beginButton;
>IBOutlet UIButton *endButton;
>IBOutlet UILabel *nameLabel;
>IBOutlet UILabel *numberLabel;
>MyModel *myModel;
> }
>
> @property (nonatomic, retain) IBOutlet MyMo
On May 19, 2010, at 3:01 AM, Andrew wrote:
> Im writing some code to animate an image moving up the display, just a simple
> thing moving from the bottom to the top.
>
> the image is 75x75, and Im displaying that in a CALayer sized to 45x45 by
> setting its .contents property to the .CGImage o
UIWebView is the easiest way to view PDFs. But if you want any editing or other
custom manipulation, will need to drop down lower to CoreGraphics.
On 19 May 2010, at 11:07, Gustavo Pizano wrote:
> Hello all.
>
> I would want to know if I can render pdf into iPad using quartz, or I have
> to u
Hello Jack and Laurent.
So I will see the CGPDF API, also what Jack wrote.
The idea its very simple, load pdf and be able to add notes, as I understand I
can "inject" the notes object in the pdf strucutre, correct me if Im wrong
please, this is the first time Im gonna be doming something like
On Wed, May 19, 2010 at 1:06 PM, Gustavo Pizano
wrote:
> Hello Jack and Laurent.
>
> So I will see the CGPDF API, also what Jack wrote.
>
> The idea its very simple, load pdf and be able to add notes, as I understand
> I can "inject" the notes object in the pdf strucutre, correct me if Im wrong
Aha .. ok..
:P
np.
G
On 19.5.2010, at 13:11, Jack Nutting wrote:
> On Wed, May 19, 2010 at 1:06 PM, Gustavo Pizano
> wrote:
>> Hello Jack and Laurent.
>>
>> So I will see the CGPDF API, also what Jack wrote.
>>
>> The idea its very simple, load pdf and be able to add notes, as I understand
>
Laurent hi.
About your warning.
SO If I have a pdf of many many pages, I shall just open de CGPDFDocument,
then get the required page using CGPDFDocumetnGetPage(), dra the page then
release the CGPDDocument?.. and when swapping pages just release the current
page, open document again get next
On Wed, May 19, 2010 at 6:31 AM, Joanna Carter
wrote:
> Any outlets for controls (top level objects) in the Nib should be released in
> the dealloc method only for OS X apps but not for iPhone apps. Setting the
> properties to nil will ensure that the synthesized setter will be called,
> which
I'm looking for some sample code that shows how to take a token in a text view
and represent it as a single graphical item - just like what xcode does when it
does method completion, and it puts the arguments in a single blue capsule
thing that is treated as one single character (only I wouldn't
Hi Sherm
> If you set the ivars directly, as above, the synthesized setters will
> NOT be called. For that to happen, you need to use dot-syntax, like
> this:
You are absolutely right. I keep slipping back to previous languages :-)
Joanna
--
Joanna Carter
Carter Consulting
I am working on a remote-controller, i.e. take one device (be it a Mac or a
mobile client) and control another Mac. So the application runs in background
and the events should be delivered to the front-most application.
Moving the mouse around works by posting the corresponding events, but I hav
On 19 May 2010 13:02, Gideon King wrote:
> I'm looking for some sample code that shows how to take a token in a text
> view and represent it as a single graphical item - just like what xcode does
> when it does method completion, and it puts the arguments in a single blue
> capsule thing that i
> I am working on a remote-controller, i.e. take one device (be it a Mac or a
> mobile client) and control another
> Mac. So the application runs in background and the events should be delivered
> to the front-most application.
> Moving the mouse around works by posting the corresponding events,
That looks to be exactly what I was looking for, thanks.
Gideon
On 19/05/2010, at 10:31 PM, Jonathan del Strother wrote:
>
> Try NSTokenField ?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator co
Hi,
I am working on a small project, which is about inserting a horizontal line
into a NSTextView.
My first solution is to subclass NSAttachmentCell, and let the custom class do
the drawing. I am here neglecting that an attachment would normally have a file
or an image embedded (attached).
Th
Hello,
I'm struggling a bit with what seems to be quite common these days, putting an
NSProgressIndicator inside of an NSTableView. I'm able to make it work to a
point but quite buggy and not always able to update it properly. I have found
the topic discussed a bit in the Archives and via Goo
Hi Gustavo,
When you draw a CGPDFPageRef into a graphic context, Quartz will hold images
inside the PDF page in a sort of cache (at least, it seems with Instrument
Object Alloc). You can only empty that cache by destroying the
CGPDFDocumentRef.
However, if you do not destroy your CGPDFDocumen
Rafael hi
Thanks for the info,, I will be testing the behavior with some pdfs and see
whats better, to keep the CGPDFDocumentRef and destroy it when closing the
pdf.. or open-close each time I change.. I guess I must decided what I want
speed vs memory usage.
G,
On 19.5.2010, at 15:0
Hello,
A customer wants an app that changes the desktop background image. I told him
that is not possible (and probably won't be in the near future) because that
would mean to play outside the sandbox. Is this correct?
Thanks and regards,
Sebastian Mecklenburg___
Op 19 mei 2010, om 11:44 heeft René v Amerongen het volgende geschreven:
>>
>
> Because I didn't see any result, I noticed that this happened only when I use
> /bin/sh -c.
>
> My code was just a short piece in main as test bed, and did trust my NSLog
> output which was ok and visible in the x
On May 19, 2010, at 7:55 AM, sebi wrote:
> A customer wants an app that changes the desktop background image. I told him
> that is not possible (and probably won't be in the near future) because that
> would mean to play outside the sandbox. Is this correct?
Correct, this is not possible in th
> Correct, this is not possible in the current API. I would recommend filing a
> bug report asking for this capability.
There's an interesting post on MacRumours, that might save you the trouble of
filing that report.
http://www.macrumors.com/2010/05/18/apple-releases-iphone-os-4-beta-4-and-sdk
I found the problem. It was not in the singleton design pattern, but in the way
I created the NSMutableDictionary. The dictionary contained NSString as keys
and NSMutableArrays as values, then I was trying to create the
NSMutableDictionary with initWithDictionary method from an NSDictionary. But
Hi Abhinay,
Why declaring the static variable outside the function? If I have it inside, I
make sure that it's initialized before it's being used.
aa
On May 18, 2010, at 5:58 PM, Abhinay Kartik Reddyreddy wrote:
>
> On May 18, 2010, at 6:42 PM, Mike Abdullah wrote:
>
>>
>> On 18 May 2010,
On Wed, May 19, 2010 at 4:38 AM, Sherm Pendley wrote:
> If you set the ivars directly, as above, the synthesized setters will
> NOT be called. For that to happen, you need to use dot-syntax, like
> this:
But you shouldn't be using accessors in -init or -dealloc anyway. It
makes subclassing fragil
Hehe, I'm with you here, man :-)
Sadly, however, if I would accept only job offers where I can create useful
programs for smart people I would be starved by now.
Regards,
Sebastian Mecklenburg
On 19.05.2010, at 18:23, Phil Hystad wrote:
> I hope this feature is not supported. The last thing
I too would really hate this feature, as a user.
___
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
Help/Unsubscribe/
On 2010-05-19, at 1:55 PM, Rick C. wrote:
> Hello,
>
> I'm struggling a bit with what seems to be quite common these days, putting
> an NSProgressIndicator inside of an NSTableView. I'm able to make it work to
> a point but quite buggy and not always able to update it properly. I have
> fou
On Wed, 19 May 2010 20:55:21 +0800, Rick C. said:
>I'm struggling a bit with what seems to be quite common these days,
>putting an NSProgressIndicator inside of an NSTableView. I'm able to
>make it work to a point but quite buggy and not always able to update it
>properly. I have found the topic
Paul,
I am interested in simulating text input (maybe via generating keystrokes), but
never found an example for that.
One example is redirecting input from a serial port to the active application.
I tried to do it in the past, but didn't get it to work with Cocoa/ObjC, though
I succeeded usi
I'd like to use Scripting Bridge to find messages in Mail's Inbox that
have attachments with a certain suffix (e.g., txt) and ultimately
retrieve just those.
When I get a reference to "Inbox", what I want (in plain English) is ALL
messages that have at least one attachment whose name ends in "
> I am interested in simulating text input (maybe via generating keystrokes),
> but never found an example for that.
Well VNC must simulate keystrokes somewhere along the line, although finding it
may take a bit of digging around in the sources. As you say, mapping all the
various keycodes is
Well, I'm not sure.
I only use AppleLanguages for debug. I'm setting the argument in the launch
argument in Xcode. I think that your method can work. Perhaps you can even set
the defaults in the beginning of the application [NSUserDefaults
registerDefaults:], but I think it must be very early
Yeah, well.. as I see some multi language apps, you change the language and
then you must restart the app in order the selected lang to be used. So my
guess is that they register the language as I described and restart the
application.. once in the +(id)initialize method of t he delegate where
Hi Folks,
I have followed the suggestion in the documentation to use
NSDrawThreePartImage to draw an extensible image.
The way that I am using it, the image is extensible in the horizontal
dimension, and may be resized in the vertical dimension, so the
individual component images are resc
Only in IB 3.2. The 3.1 tooltips are not so useful.
This one happens to be simple, though. Look up sendsActionOnEndEditing
On May 18, 2010, at 4:02 AM, René v Amerongen wrote:
In IB, move with the mouse over the popup item.
Op 18 mei 2010, om 10:21 heeft Dong Feng het volgende geschreven:
T
okay, going slightly nuts. I've implemented my MIDI_Instrument_Controller
object, and hooked it up to my table view, but it's complaining about
implementing numberOrRowsInTableView and
tableView:objectValueForTableColumn:row:. Fine, except that I very definitely
have implemented them. I tried c
Hi BJ,
File a bug with a test case that shows the problem.
I would expect there to be seams due to rounding error if you look in pixie,
but I have never seen a case where it was visible to the eye at actual
scale.
-Ken
On Wed, May 19, 2010 at 1:41 PM, B.J. Buchalter wrote:
> Hi Folks,
>
> I h
everytime you ask for a uniqueInstance it looks like it retrieves a new
instance not the existing instance... since you set the uniqueinstance to nil
inside that function, your function will discard the previous instance if any
and then create a new instance. Singleton is supposed to return ex
On May 19, 2010, at 4:30 PM, Ken Ferry wrote:
> File a bug with a test case that shows the problem.
>
> I would expect there to be seams due to rounding error if you look in pixie,
> but I have never seen a case where it was visible to the eye at actual
> scale.
I only recall seeing this when
On Wed, May 19, 2010 at 2:46 PM, Ricky Sharp wrote:
>
> On May 19, 2010, at 4:30 PM, Ken Ferry wrote:
>
> > File a bug with a test case that shows the problem.
> >
> > I would expect there to be seams due to rounding error if you look in
> pixie,
> > but I have never seen a case where it was visi
Hi Ken,
File a bug with a test case that shows the problem.
Ok -- I filed rdar://8005118
This includes a default configuration that shows the crack clearly.
The crack comes and goes as you rescale the window.
I would expect there to be seams due to rounding error if you look
in pixie, b
Abhinay Kartik Reddyreddy wrote:
everytime you ask for a uniqueInstance it looks like it retrieves a
new instance not the existing instance... since you set the
uniqueinstance to nil inside that function, your function will
discard the previous instance if any and then create a new
instan
Thanks GG.
Apologies for the wrong remark.
On May 19, 2010, at 6:33 PM, Greg Guerin wrote:
> Abhinay Kartik Reddyreddy wrote:
>
>> everytime you ask for a uniqueInstance it looks like it retrieves a new
>> instance not the existing instance... since you set the uniqueinstance to
>> nil inside
Hi Ricky,
that is interesting, for some reason I assumed that the presentation layer
would take care of caching the presented view.
ok, I will try that and see how it goes, thanks.
is there anything else you can think of that might make a difference?
- Andrew Bush
>
>> Im writing some cod
Great thank you both for the replies!
On May 20, 2010, at 2:18 AM, Sean McBride wrote:
> On Wed, 19 May 2010 20:55:21 +0800, Rick C. said:
>
>> I'm struggling a bit with what seems to be quite common these days,
>> putting an NSProgressIndicator inside of an NSTableView. I'm able to
>> make it
Hey Folks,
I would like to implement something that I would describe as "popup"
text entry. Effectively I have a view that displays some textual
information. I would like to make it so that if the user clicks on the
view it becomes a text entry box.
I have worked out how to insert a NSTex
On 20/05/2010, at 7:35 AM, Abhinay Kartik Reddyreddy wrote:
> everytime you ask for a uniqueInstance it looks like it retrieves a new
> instance not the existing instance... since you set the uniqueinstance to nil
> inside that function, your function will discard the previous instance if any
Static variables inside member functions are initialized only once, static
variables therefore keep the state of the variable in repeated calls.
aa
On May 19, 2010, at 6:37 PM, Graham Cox wrote:
>
> On 20/05/2010, at 7:35 AM, Abhinay Kartik Reddyreddy wrote:
>
>> everytime you ask for a uniqu
Hi,
Does anyone have any suggestions or examples on adding more than 2 lines to
a UITableView row on the iPhone?
I am using textLabel and detailTextLabel at present but wish to also add a
3rd and 4th line.
Best Regards,
Nick
___
Cocoa-dev mailing l
Thanks. I looked into it - compiled and run. The code uses the keycodes as
well, and finally doesn't give special characters (tested with JollyVNC client
and an iPad app).
I think I can get it running "good enough" - but of course a nice solution is
preferred. At least only the "ANSI" named sub
oh jeez... This is making me crazy. For some reason, my NSArrayController
appears to be calling "count" on MIDIInstrument objects. No idea why. I could
see it calling count on the array it's controlling, but not an object in that
array. Has anyone come across this problem?
I have a MIDI_Instru
Paul,
You're right. I'll check VNC server source later. Thanks for the help.
Cheers,
Flavio
On 19/05/2010, at 16:53, Paul Sanders wrote:
>> I am interested in simulating text input (maybe via generating keystrokes),
>> but never found an example for that.
>
> Well VNC must simulate keystro
Hi Nick,
you can add more content (labels or any other views) to the contentView of the
cell (in the -tableView:cellForRowAtIndexPath: method of the table view data
source) or you can create a custom cell. Read the documentation of
UITableViewCell and the Table View Programming Guide for detail
66 matches
Mail list logo