Leaks and ObjectAlloc in Instruments

I've got a substantially large app which is completely clean with regard to memory leaks (in Instruments), but grows by 2-5 objects / button push (the "AllAlocations" line item in Instruments).
It seems the NSMutable Object Instance Variables are responsible as if I comment them out, the Object growth stops.
As much as I try though I cannot stop the Object count from growing as long as the NSMutableStrings are there.
Here's the setup and use:
@interface myOBjectModule {
NSMutableString * myMutableString;
@property (nonatomic, retain) NSMutableString * myMutableString;
@end
....and in the implementation
@impementation myObjectModule
@synthesis myMutableString;
then its 1st use is as follows:
-(void) appendCharacterToyMutableString: (int) aCharacter {
NSString * wert;
wert = [[NSString alloc] initWithString: [myMutableString
stringByAppendingFormat: @"%c", aCharacter]];
[self setMyMutableString: wert];
[wert release];
So I'm hoping someone can enlighten me on "Instruments" and ObjectAlloc growth.
I've tried 'copy' and 'assign' in the @property, and other variations of append withformat....and so on. Nothing seems to matter unless I take out the '[self setMyMutableString: wert];' statement.
tia - Rick

The 'setMyMutableString' method is a standard (canned) accessor method spawned by @synthesize. To verify, I wrote my own to try it, with proper release->assign sequencing and the results are identical.
The answer to your question: "why do you use an NSMutableString, but then use it like an immutable one...." is that "wert" really represents an intermediate value on which more operations are performed before it is finally concatenated onto the back of the orginal myMutableString.
Its not an absolute representation of my code, but it does exhibit the same problem.
The code is completely clean from a memory-leak perspective (according to instruments).
============================
I think though, here is the real question:
It seems like the object growth on the top-line (* All Allocations *) is coming from various General Block-xx lines, not from any of the CFxxxxx lines (like CFString etc).
Does anyone have any insight into what to look for in the ObjAlloc tool that indicates real problems? The objects that I can control DO NOT seem to grow, only the General Block-xx objects.
-- thanks again rick

Similar Messages

  • Can Express 9 play and record multiple instruments at the same time?

    I have logic express 9 and was told with my interface that I can play and record different instruments at the same time on Express 9. Is this true because I have spent a long time trying to figure out how.

    Hi,
    to record multiple Inputs at a time, open up the appropriate number of audio tracks. Now for each track, select the correct Input in the Channelstrip.
    Now, ARM all these tracks for recording by clicking the little red R in the track header or channelstrip. Now if you hit record, all these tracks should record simultaneously their respective inputs.
    All other existing tracks should playback while recording.
    Fox

  • X220 with backlight leak and stuck pixel

    I just ordered x220 from lenovo. I recived the box yesterday and found my new thinkpad had many backlight leak and 1 stuck pixel at the center. I am very disappoint with it. Can I return it, change to new one or send to lenovo sevice center in thailand to change my IPS display.
    I ordered it on 5/26/11. My friend in USA passed it to me on 6/6/11 then I recieved package in Thailand on 6/10/11.
    This is my backlight leak.
    http://imageshack.us/photo/my-images/840/img0056yz.jpg/
    Unfortunately I can not take stuck pixel image.
    I hope lenovo will help me fix this problem.
    Thank you.

    welcome to the forum!
    the current policy is that a display must have three or more dead or stuck pixels to be considered defective.   one is simply not enough.
    http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-69856
    regarding the backlight bleed, it looks normal to me for an LED notebook panel.   i could create a condition where even $5000 IPS graphics displays show some sort of backlight bleed on a black background with brightness at full power.   no display is perfect in this regard.   my X220 IPS panel has a slight amount of bleed under the right conditions but is only noticable 1% of the time.
    if this is unsatisfactory, you may try contacting lenovo support in thailand at 1-800-060-066 or 66 2273 4088 between 8AM and 5PM monday-friday.   however, please note that they will likely refer to the same pixel policy above.   whether or not they will make an acception due to the location of the stuck pixel is up to them.
    also, i've removed your second account "eldonler" as we don't allow members to have more than one login per our community participation rules.   thanks for understanding.
    ThinkStation C20
    ThinkPad X1C · X220 · X60T · s30 · 600

  • HT3161 I have a 27" mac running with a 3.4 ghz core i7 and 16 gigs of ram and using the latest logic. I have a composition consisting of 7 audio tracks and 4 software instruments and 4 plugins on 4 tracks so why is my CPU spiking ?

    I'm running a 27" imac with a 3.4ghz core i7 processor and 16 gb of ram.... In logic I have a project with 7 audio tracks with various plugins running and 4 software instruments which incidentally are not playing all the way through the track...my CPU spikes even if the project is paused...why is this happening on such a high end machine.....wasting my money again seems to spring to mind !!

    Did you read this support article?
    http://support.apple.com/kb/ht3161

  • There is a small white light in the retina display on my ipad 3. Is this a dead pixel/light leak and how do I fix it? (Located at the bottom left side between home button and left corner)

    There is a small white light in the retina display on my ipad 3. Is this a dead pixel/light leak and how do I fix it? (Located at the bottom left side between home button and left corner)

    Maybe this will show up better in green.

  • Light Leaks and reboots on CLNR.

    So my new phone per the great policy was replaced with a refurb. That seems fair. The refurb I noticed has light leaks and the screen appears like it its not tightly sealed all the way around.
    A replacement is on the way but not before the nice verizon rep that told me the only way the screen would be loosing adhesiveness, since I did not notice if it was like this from day one, 25 days ago, is humidity or water damage.. Yeah for three weeks I have been watching my mom die, now that is out of the way, i have time to focus on all things thunderbolt... I should be aware of the details of my refurb junk. I am now aware at their discretion they will decide to arbitrarily charge me for something I did not do.  Because adhesives or humans who rebuild these things never fail. Only the user, I guess
    Better believe the next one I guess I will need to fine tooth comb it on day one. I was going with the assumption of quality. I was wrong
     Rooms to Go does the same thing... We had 3 month old furniture with cushions starting to break down. Did rooms to go say we were sitting on them to hard, maybe they might suggest at 170 pounds I lose some weight as I am 6' 1" and a guy.  No rooms to go replaced 3000 dollars worth of furniture with NEW furniture.  Rooms to go replaced it with a different model, style, etc... since the first did not meet expectations.  They delivered that new set tuesday of this week. 
    All sarcasm aside, my mother did pass, rooms to go did replace my furniture, and I am waiting to see if I get charged for something I did not do to a defective phone because I did not notice the slight lifting of the screen the day the sub par replacement arrived... 
    Reading is fundamental and I will only be a verizon customer until this contract expires... There 14 day new replacement policy for sub par equipment is a disservice for the millions of dollars they receive from hard working folks like you and I.  
    Two companies. One sells 3000 dollar items replaces with no questions. One sells 500 dollar items and continues to make 1500 a year off of thorough recurring billing and gives you junk replacements... Some business model.

    Hello kballard72,
    I know how frustrating it must've been for you to experience issues with your device.  Please let us know if you experience any difficulties with your replacement. We are always here to assist.

  • What is the difference between the leak and the official?

    Is they difference between OS 10.2.1 leak and official? 1925 and 537 am confused.
    Khalilullah

    There is no difference, the 537 number is the Software Release version the 1925 number is the OS version.
    You can verify this by going to Settings -> About -> Category - OS and looking at the Software Release and OS Version.
    If you've been helped click on , if you've been saved buy the app.
    Developer of stokLocker, Sympatico and Super Sentences.

  • Firefox has a memory leak and I need to update it, but I want to keep 3.5 because I don't like how the newest version of Firefox is set up.

    My computer is running low on RAM, and when I look at what processes are using the most memory, firefox is the number one using between 28,000 to 93,000k, so I'm guessing that it has a memory leak.
    And because of that memory leak I have to update firefox, however I really dislike the newest version of firefox and I'd prefer to stick with the version I have, which is 3.5.

    Often the memory problems are not just from Firefox in isolation, but partly relating to all the extensions available for it and then the videos and animations it runs on media rich sites.
    The first thing to do is to upgrade to firefox 3.6 which is at least a supported version (Maybe not for much longer)
    * see [[updating firefox]]
    Next version after 3.6 is 4, you should avoid that, it did have some memory problems, that were worse than 3,6 and firefox 4 is no longer secure or supported.
    The techies at Firefox have been working on memory problems recently and have made many improvements, but some of these improvements are only seen in the trial versions of Firefox.
    I would in fact suggest you upgrade to Firefox 5 the current release version (soon to be replaced with Firefox 6)
    I am able to run Firefox v3.6 to v8 on legacy XPs with less than 1GB RAM. Firefox in itself is not necessarily very demanding in terms of RAM. I am not sure what the figures are you are quoting, or whether they are high. ( Note 1Gb is in the order of 1 000 000 k )
    As for not liking the set-up of new versions of Firefox, there is quite abit that can be changed, maybe you would be able to configure it more to your liking with little effort.

  • Memory leak and char[] ?

    Hello all,
    I'm not sure whether this post should be here or in WebLogic section, so correct me if I'm wrong.
    I'm working on JDeveloper 11.1.1.3 while deployments are made on standalone WebLogic 10.3.3. This thing occurred in previous versions also.
    With every deployment WebLogic increases it's used memory until the famous PermGen space error, which is after about 5-6 deployments.
    I'm doing my best to understand how to use memleak detection tools. I've switched JDev and WL from Sun jdk which was used before to JRockit, same thing happens. Both JDev's memory profiler and JRockit mission control show something that I really do not understand. char[] uses around 30% of heap space and keeps growing with deployments, next is String with 8%. I never use char in app.
    Am I looking at the wrong thing? Is it normal for char[] to increase on WebLogic on deployments? Does anyone know how to check other things and what to check? Someone on other forums mentioned it would be useful to check if ApplicationContext keeps initializing over again on deployments. Does anyone know how to check this?
    One more thing, I have successfully deployed app on Tomcat, and Tomcat said there is a memory leak in app, but could not tell anything specific.
    I'm kinda lost in this :(

    It is normal for the PermGen space of the Sun's JVM to get filled after several re-deployments. PermGen stands for "permanent generational". This space is used by classes that is unlikely to need to be garbage-collected, so they are placed in this memory space that is never garbage-collected (for example, the Class instances). When you redeploy an application, a new class loader instance is used and it instantiates new Class instances that fill up the PermGen space. But why this happens on JRockit either, I could not explain.
    We have experienced memory leaks related to classes and components that use native memory. For example, we have had significant memory leak when using Oracle's JDBC OCI driver. We were not able to solve this problem, so we switched to JDBC Thin driver (which is very performant and stable today comparing to some years ago). If you are using Oracle JRockit, you can monitor the overall memory usage by the following JRockit command executed at OS command line:
    jrcmd <jrockit_pid> print_memusage>where <jrockit_pid> should be replaced by the JVM process ID.
    If you suspect existence of native memory leaks, then have a look at the article Thanks for the memory for explanations about how Java uses native memory.
    Dimitar

  • I think I've got a memory leak and could use some advice

    We've got ourselves a sick server/application and I'd like to gather a little community advice if I may. I believe the evidence supports a memory leak in my application somewhere and would love to hear a second opinion and/or suggestions.
    The issue has been that used memory (as seen by FusionReactor) will climb up to about 90%+ and then the service will start to queue requests and eventually stop processing them all together. A service restart will bring everything back up again and it could run for 2 days or 2 hours before the issue repeats itself. Due to the inconsistant up time, I can't be sure that it's not some trouble bit of code that runs only occasionally or if it's something that's a core part of the application. My current plan is to review the heap graph on the "sick" server and look for sudden jumps in memory usage then review the IIS logs for requests at those times to try and establish a pattern. If anyone has some better suggestions though, I'm all ears! The following are some facts about this situation that may be usefull.
    The "sick" server:
    - CF 9.0.1.274733 Standard
    - FusionReactor 4.0.9
    - Win2k8 Web R2 (IIS7.5)
    - Dual Xeon 2.8GHz CPUs
    - 4GB RAM
    JVM Config (same on "sick" and "good" servers):
    - Initial and Max heap: 1536
    -server -Xss10m -Dsun.io.useCanonCaches=false -XX:PermSize=192m  -XX:MaxPermSize=256m -XX:+UseParNewGC -Xincgc -Xbatch -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.dotnet.disableautoconversion=true
    What I believe a "healthy" server graph should look like (from "good" server):
    And the "sick" server graph looks like this:

    @AmericanWebDesign, I would concur with BKBK (in his subsequent reply) that a more reasonable explanation for what you’re seeing (in the growth of heap) is something using and holding memory, which is not unusual for the shared variables scopes: session, application, and/or server. And the most common is sessions.
    If that’s enough to get you going, great. But I suspect most people need a little more info. If this matter were easy and straightforward, it could be solved in a tweet, but it’s not, so it can’t.
    Following are some more thoughts, addressing some of your concerns and hopefully pointing you in some new directions to find resolution. (I help people do it all the time, so the good news is that it can be done, and answers are out there for you.)
    Tracking Session Counts
    First, as for the observation we’re making about the potential impact of sessions, you may be inclined to say “but I don’t put that much in the session scope”. The real question to start with, though, is “how many sessions do you have”, especially when memory use is high like that (which may be different than how many you have right now). I’ve helped many people solve such problems when we found they had tens or hundreds of thousands of sessions.  How can you tell?
    a) Well, if you were on CF Enterprise, you could look at the Server Monitor. But since you’re not, you have a couple of choices.
    b) First, any CF shop could use a free tool called ServerStats, from Mark Lynch, which uses the undocumented servicefactory objects in CF to report a count of sessions, overall and per application, within an instance. Get it here: http://www.learnosity.com/techblog/index.cfm/2006/11/9/Hacking-CFMX--pulling-it-all-togeth er-serverStats . You just drop the files (within the zip) into a web-accessible directory and run the one CFM page to get the answer instantly.
    c) Since you mention using FusionReactor 4.0.9, here’s another option: those using FR 4 (or 4.5, a free update for you since you’re on FR 4) can use its available (but separately installed) FusionReactor Extensions for CF, a free plugin (for FR, at http://www.fusion-reactor.com/fr/plugins/frec.cfm). It causes FR to grab that session count (among many other really useful things about CF) to log it every 5 seconds, which can be amazingly helpful. And yes, FREC can grab that info whether one is on CF Standard or Enterprise.
    And let’s say you find you do have tens of thousands of sessions (or more). You may wonder, “how does that happen?“ The most common explanation is spiders and bots hitting your site (from legit or unexpected search engines and others). Some of these visit your site perhaps daily to gather up the content of all the pages of your site, crawling through every page. Each such page hit will create a new session. For more on why and how (and some mitigation), see:
    http://www.carehart.org/blog/client/index.cfm/2006/10/4/bots_and_spiders_and_poor_CF_perfo rmance
    About “high memory”
    All that said, I’d not necessarily conclude so readily that your “bad” memory graph is “bad”. It could just be “different”.
    Indeed, you say you plan to “look for sudden jumps in memory usage“, but if you look at your “bad” graph, it simply builds very slowly. I’d think this supports the notion that BKBK and I are asserting: that this is not some one request that “goes crazy” and uses lots of memory, but instead is the “death by a thousand cuts” as memory use builds slowly.  Even then, I’d not jump at a concern that “memory was high”.
    What really matters, when memory is “high” is whether you (or the JVM) can do a GC (garbage collection) to recover some (or perhaps much) of that “high, used memory”. Because it’s possible that while it “was” in use in the past (as the graph shows), it might no longer be “in use” at the moment . 
    Since you have FR, you can use its “System Metrics page” to do a GC, using the trash can in the top left corner of the top right-most memory graph. (Those with the CFSM can do a GC on its “Memory Usage Summary” page, and SeeFusion users can do it on its front page.)
    If you do a GC, and memory drops q lot, then you had memory that “had been” but no longer ”still was” in use, and so the high memory shown was not a problem. And the JVM can sometimes be lazy (because it’s busy) about getting to doing a GC, so this is not that unusual. (That said, I see you have added the Xincgc arg to your JVM. Do you realize that tells the JVM not to do incremental GCs? Do you really want that? I understand that people trade jvm args like baseball cards, trying to solve problems for each other, but I’d argue that’s not the place to start. In fact, rarely do I find myself that any new JVM args are needed to solve most problems.)
    (Speaking of which, why did you set the – xss value? And do you know if you were raising or lowering it form the default?)
    Are you really getting “outofmemory” errors?
    But certainly, if you do hit a problem where (as you say) you find requests hanging, etc., then you will want to get to the bottom of that. And if indeed you are getting “outofmemory” problems, you need to solve those. To confirm if that’s the case, you’ll really want to look at the CF logs (specifically the console or “out” logs). For more on finding those logs, as well as a general discussion of memory issues  (understanding/resolving them), see:
    http://www.carehart.org/blog/client/index.cfm/2010/11/3/when_memory_problems_arent_what_th ey_seem_part_1
    This is the first of a planned series of blog entries (which I’ve not yet finished) on memory issues which you may find additionally helpful.
    But I’ll note that you could have other explanations for “hanging requests” which may not necessarily be related to memory.
    Are you really getting “queued” requests?
    You also say that “the service will start to queue requests and eventually stop processing them all together”. I’m curious: do you really mean “queuing”, in the sense of watching something in CF that tells you that? You can find a count of queued requests, with tools like CFSTAT, jrun metrics, the CF Server Monitor, or again FREC. Are you seeing one of those? Or do you just mean that you find that requests no longer run?
    I address matters related to requests hanging and some ways to address them in another entries:
    http://www.carehart.org/blog/client/index.cfm/2010/10/15/Lies_damned_lies_and_CF_timeouts
    http://www.carehart.org/blog/client/index.cfm/2009/6/24/easier_thread_dumps
    Other server differences
    You presented us a discussion of two servers, but you’ve left us in the dark on potential differences between them. First, you showed the specs for the “sick” server, but not the “good” one. Should we assume perhaps you mean that they are identical, like you said the JVM.config is?
    Also, is there any difference in the pattern of traffic (and/or the sites themselves) on the two servers? If they differ, then that could be where the explanation lies. Perhaps the sites on one are more inclined to be visited often by search engine spiders and bots (if they sites are more popular or just have become well known to search engines). There are still other potential differences that could explain things, but these are all enough to hopefully get you started.
    I do hope that this is helpful. I know it’s a lot to take in. Again, if it was easier to understand and explain, there wouldn’t be so much confusion. I do realize that many don’t like to read long emails (let alone write them), which only exacerbates the problem. Since all I do each day is help people resolve such problems (as an independent consultant, more at carehart.org/consulting), I like to share this info when I can (and when I have time to elaborate like this), especially when I think it may help someone facing these (very common) challenges.
    Let us know if it helps or raises more questions. :-)
    /charlie

  • Toner leak and printer damage, toner cartridge 124A

    My yellow toner cartridge leaked all over my printer. I got it cleaned up and replaced the toner cartridge, but now the inks are very washed out. The black is faded and the color is really faded. The white paper, where there should be no printing is now a light gray as if the black toner is printing very lightly.  Does anyone know how I can fix it? I have run the demo sheet and recalibrated but nothing has changed.  The printer works very well otherwise.
    Alternatively, if this is something that cannot be fixed, are there other printers that use the 124A toner cartridges? I have two more sets of black and color toner cartridges and would like to be able to use them if the printing problem cannot be repaired.

    Hi agniss,
    I just sent you a private message.
    If you are not sure how to check your post forum messages, this has instructions.
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Measure the communicat​ing time between LabView send out commands and response of instrument

    I send a command to a function generator(SRS DS345)using "GPIB Write" via GPIB,to change the frequency of output.And I would like to to measure the time between
    initially send out commands and actual response of instrument(frequency change).I have designed a program which contains three sequences,the 2nd one contains "GPIB Write",and the 1st and the 3rd contain "Tick count",then subtract the latter from first one.I think this is not the time that I want...
    What should I do ?
    Thanks!!

    If want a more precise and NIST-traceable method of timing a portion of your LabVIEW code. The below VI uses two counters on an E-Series or NI-TIO based device to complete this task.
    Download the attached VI and replace the for loop (EVENT TO TIME) with your VI or code.
    This example uses the maximum timebase of your device as the source for "simple event counting". Due to counter roll-over, two counters are used in order to be able to time events of short or very long duration. See VI Documentation for more information.
    Attachments:
    Time_With_Counters_(LV61).vi ‏199 KB

  • Flash player 11.6 r602 memory leak and crash in FF 19.0

    I have seen similar questions like this but have never witnessed it myself until today when Flash updated on FF 19.0. I'd like to see if this is Firefox or Adobe as the later is quick to say "this is normal".
    I watch two streams (uStream and live.twit.tv) almost all the time that use flash on both sites. Usually it caps out at around 250MB and worked just fine this morning on uStream and is stable. Just got the Flash 11.6 update and neither currently work and will lock-up Firefox and eventually crash Adobe, which then frees up Firefox to allow me to use it again. It slowly creeps up to 1.9G before Adobe crashes.
    I have tried, as suggested elsewhere on a very similar issue, to roll back to Adobe 10, add "ProtectedMode = 0" to the mms.cfg file in the macromed folders, and disabling hardware acceleration in Firefox options. This allowed Firefox to play flash media, but only after it as reached 2.8G of memory on an 8G physical memory machine (Adobe claims 10% is normal, which this is far beyond 10% of 8G)
    I'd be quicker to blame Adobe on this, but I just got Firefox 19 the past 7 days, Adobe had always worked on Firefox before this update, but now even rolling back doesn't seem to work well at all. I'm not sure how to post my reports from about:crashes here, but...
    bp-492ad7e0-2bf8-46cb-b558-596252130228 2/27/20134:01 PM
    ...is my latest (Eleven reports today). I have screenshots of both Adobe v10 and v11 leaking memory, but don't feel it's useful at this time.
    Any help would be awesome and if it's not Firefox at all I guess I'll head back to Adobe with some more meat and potatoes for a more thorough support ticket over there. I just don't like having to use Chrome since it seems to work just fine on these pages ;)

    Thanks for your prompt and helpful reply.....
    When dealing with such a large problem with frequent FF lockups the temptation is to lump all information in an attempt to solve. LOL
    Chasing multiple threads to help solve the problem may be helpful to the developers but it takes far too much time following and posting in each thread. As you can see it's taken a couple of days to get back to this post.
    First thing we did is dump cache and cookies both through the interface and then manually in the profile. We changed the version of Flash installed manually and even changed the version of FF. There are many "flash" enabled pages we encountered which caused the lockup.....so MSN is not specifically the issue.
    But when Flash is removed or disabled the browser no longer locks up.....suffice to say we get an error when visiting a website with flash content on it.
    That is why I chose to post here as the problem is directly attributable to Flash in FF on all of our machines.
    Paul

  • Odd EXC_BAD_ACCESS error and general leaks and beginners trouble

    Hi,
    I am new to apple programming and thought I'd get into that and opengl programming by creating a small utility to display images.
    I've stumbled upon memory leaks, however. The "leaks" CLI utility mentions lots of leaks, but I'm not sure I can trust that.
    The xcode project can be seen at http://elendil.qeep.dk/code/opengl_imageviewer/ and the main file at http://elendil.qeep.dk/code/opengl_imageviewer/main.cpp. An archive can also be found at http://elendil.qeep.dk/code/opengl_imageviewer.zip for the interested.
    I have two problems. First of all, upon calling NavDialogRun(ref) in getFileURLRef() (line 86) the xcode run log gives me lots of "2007-08-06 02:10:17.977 opengl_imageviewer[12047] * _NSAutoreleaseNoPool(): Object 0x37bba0 of class NSCFDictionary autoreleased with no pool in place - just leaking" messages that I do not understand at all. I reckon this is the main culprit.
    Secondly if I call the glPixelStorei() functions in line 129 and 130 the gdb debugger pops up with "EXCBADACCESS". Commenting out these lines makes the code seemingly work. I doubt these two commands are the base of the problem, however.
    I'd really appreciate any help. Thanks.
    Sincerely,
    -Kenneth

    It is prefectly understandable. I was working on a little app to use MacOS X's built-in spellchecker as a replacement for ispell. I had the exact same problem. The classes I had to use seemed completely independent. But they just wouldn't work until all the Cocoa runtime had been initialized. It is hard to tell which parts will behave that way. Usually, it is the higher level, OS or user interaction classes. The base core foundation classes or low-level Cocoa (NSAutoReleasePool, for example) will always work.
    MacOS X is also a confusing beast. While Cocoa is the best and easiest way to get most things done, there are some things that need Carbon. Those navigation dialogs, for example, don't exist in Cocoa as far as I can tell. You must use Carbon. Yet, they seem to use Cocoa underneath. There are several other MacOS X subsystems that are the same way.
    As for C++ vs. Obj-C, that has to be a purely personal decision. Like yourself, I spent many years learning and using C++. That was a huge investment and I would like to get something out of it. But, as difficult as it is to say it, I must admit that lately I have been more productive using Cocoa and ObjC than I could have been using C++, even though I know C++ backwards and forwards.
    I make it a point to use Objective-C++ (using .mm files instead of .m). In theory I can now use my Carbon-aware auto_ptr, but I usually end up not even using that. At least I can declare my variables where I want.

  • My magic trackpad battery leaked and now I can't get it out.. Is my trackpad ruined?

    The NiCad battery in my trackpad leaked, is the device ruined?  Or can I pry it out, find some way to clean it, and use it again?  I hate to have to buy a new one.

    It's probably OK.  Put on rubber gloves and goggles, punch a small hole it the battery, and pull it out with a corkscrew.  (Clean the corkscrew before using it for wine.)
    Holding the trackpad with the battery opening facing down, clean the battery compartment with a rolled up paper towel moistened first with vinegar or lemon juice, then plain water, then dry.

Maybe you are looking for

  • How can i get my printer and imac to communicate

    I cannot get my imac and my Lexmark 6150 to communicate and print. What else can i do

  • Print issue in F.27...

    Hello, I am trying to print periodic account statement using F.27. I put the name of printer in Print Control but it just creates the spool in sp01. To print that I have to go to SP01 but the thing does not get printed via F.27. Please help as how ca

  • Custom page VO not getting refreshed.

    Hi, I developed a custom page where the user can update the details. Everything works fine and even the updates are done correctly but unless i logout and login, i don't see the changes in the fields the user has done. Why is it happening? Please upd

  • How do i query a sun one server for a member of a  group

    Hi Folks I would like to know if any one know how to query a sun one directory server to list all members of the group. currenty i have this LDAP://SERVERNAME.test.com:5221/ou=people,dc=testrelsec,dc=com>;(&(objectclass = person)& adsPath;subTree" th

  • Running report and get the report result with coding

    Hi all, In our R/3 system, there is a custom sales report. My question is: is there possibility to get data by running this report and grab it the result with code and store it in internal table? Sorry if my question too basic because I am not abaper